[Lldb-commits] [lldb] r278142 - [debugserver] Delete CFData.{h, cpp}, since they appear to be dead (NFCI)
Vedant Kumar via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 9 10:42:11 PDT 2016
Author: vedantk
Date: Tue Aug 9 12:42:11 2016
New Revision: 278142
URL: http://llvm.org/viewvc/llvm-project?rev=278142&view=rev
Log:
[debugserver] Delete CFData.{h,cpp}, since they appear to be dead (NFCI)
Differential Revision: https://reviews.llvm.org/D23070
Removed:
lldb/trunk/tools/debugserver/source/MacOSX/CFData.cpp
lldb/trunk/tools/debugserver/source/MacOSX/CFData.h
Modified:
lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt
lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm
Removed: lldb/trunk/tools/debugserver/source/MacOSX/CFData.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/CFData.cpp?rev=278141&view=auto
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/CFData.cpp (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/CFData.cpp (removed)
@@ -1,74 +0,0 @@
-//===-- CFData.cpp ----------------------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// Created by Greg Clayton on 1/16/08.
-//
-//===----------------------------------------------------------------------===//
-
-#include "CFData.h"
-
-//----------------------------------------------------------------------
-// CFData constructor
-//----------------------------------------------------------------------
-CFData::CFData(CFDataRef data) :
- CFReleaser<CFDataRef>(data)
-{
-
-}
-
-//----------------------------------------------------------------------
-// CFData copy constructor
-//----------------------------------------------------------------------
-CFData::CFData(const CFData& rhs) :
- CFReleaser<CFDataRef>(rhs)
-{
-
-}
-
-//----------------------------------------------------------------------
-// Destructor
-//----------------------------------------------------------------------
-CFData::~CFData()
-{
-}
-
-
-CFIndex
-CFData::GetLength() const
-{
- CFDataRef data = get();
- if (data)
- return CFDataGetLength (data);
- return 0;
-}
-
-
-const uint8_t*
-CFData::GetBytePtr() const
-{
- CFDataRef data = get();
- if (data)
- return CFDataGetBytePtr (data);
- return NULL;
-}
-
-CFDataRef
-CFData::Serialize(CFPropertyListRef plist, CFPropertyListFormat format)
-{
- CFAllocatorRef alloc = kCFAllocatorDefault;
- reset();
- CFReleaser<CFWriteStreamRef> stream (::CFWriteStreamCreateWithAllocatedBuffers (alloc, alloc));
- ::CFWriteStreamOpen (stream.get());
- CFIndex len = ::CFPropertyListWriteToStream (plist, stream.get(), format, NULL);
- if (len > 0)
- reset((CFDataRef)::CFWriteStreamCopyProperty (stream.get(), kCFStreamPropertyDataWritten));
- ::CFWriteStreamClose (stream.get());
- return get();
-}
-
Removed: lldb/trunk/tools/debugserver/source/MacOSX/CFData.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/CFData.h?rev=278141&view=auto
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/CFData.h (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/CFData.h (removed)
@@ -1,38 +0,0 @@
-//===-- CFData.h ------------------------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// Created by Greg Clayton on 1/16/08.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef __CFData_h__
-#define __CFData_h__
-
-#include "CFUtils.h"
-
-class CFData : public CFReleaser<CFDataRef>
-{
-public:
- //------------------------------------------------------------------
- // Constructors and Destructors
- //------------------------------------------------------------------
- CFData(CFDataRef data = NULL);
- CFData(const CFData& rhs);
- virtual ~CFData();
-
- CFDataRef Serialize(CFPropertyListRef plist, CFPropertyListFormat format);
- const uint8_t* GetBytePtr () const;
- CFIndex GetLength () const;
-protected:
- //------------------------------------------------------------------
- // Classes that inherit from CFData can see and modify these
- //------------------------------------------------------------------
-};
-
-#endif // #ifndef __CFData_h__
Modified: lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt?rev=278142&r1=278141&r2=278142&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt Tue Aug 9 12:42:11 2016
@@ -37,7 +37,6 @@ set(DEBUGSERVER_USED_LIBS
add_lldb_executable(debugserver
HasAVX.s
CFBundle.cpp
- CFData.cpp
CFString.cpp
Genealogy.cpp
MachException.cpp
Modified: lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm?rev=278142&r1=278141&r2=278142&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm Tue Aug 9 12:42:11 2016
@@ -43,7 +43,6 @@
#include "PseudoTerminal.h"
#include "CFBundle.h"
-#include "CFData.h"
#include "CFString.h"
#ifdef WITH_SPRINGBOARD
More information about the lldb-commits
mailing list