Index: lldb/trunk/tools/debugserver/source/MacOSX/CFData.h =================================================================== --- lldb/trunk/tools/debugserver/source/MacOSX/CFData.h +++ lldb/trunk/tools/debugserver/source/MacOSX/CFData.h @@ -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 -{ -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__ Index: lldb/trunk/tools/debugserver/source/MacOSX/CFData.cpp =================================================================== --- lldb/trunk/tools/debugserver/source/MacOSX/CFData.cpp +++ lldb/trunk/tools/debugserver/source/MacOSX/CFData.cpp @@ -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(data) -{ - -} - -//---------------------------------------------------------------------- -// CFData copy constructor -//---------------------------------------------------------------------- -CFData::CFData(const CFData& rhs) : - CFReleaser(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 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(); -} - Index: lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt =================================================================== --- lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt +++ lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt @@ -37,7 +37,6 @@ add_lldb_executable(debugserver HasAVX.s CFBundle.cpp - CFData.cpp CFString.cpp Genealogy.cpp MachException.cpp Index: lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm =================================================================== --- lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm +++ lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm @@ -43,7 +43,6 @@ #include "PseudoTerminal.h" #include "CFBundle.h" -#include "CFData.h" #include "CFString.h" #ifdef WITH_SPRINGBOARD