From 17ecf0036d44657b954de6c8f7efd536ab5c4809 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 24 Jan 2012 11:08:48 +0000 Subject: callcatcher: update list, remove newly unused methods --- cosv/inc/cosv/file.hxx | 4 ---- cosv/inc/cosv/streamstr.hxx | 7 ------ cosv/source/storage/file.cxx | 9 -------- cosv/source/strings/streamstr.cxx | 48 --------------------------------------- 4 files changed, 68 deletions(-) (limited to 'cosv') diff --git a/cosv/inc/cosv/file.hxx b/cosv/inc/cosv/file.hxx index 9d12cac4d6cf..b005a219db9f 100644 --- a/cosv/inc/cosv/file.hxx +++ b/cosv/inc/cosv/file.hxx @@ -57,10 +57,6 @@ class File : public bstream, { public: // LIFECYCLE - File( - const ::csv::ploc::Path & - i_rLocation, - uintt i_nMode = CFM_RW ); File( const char * i_sLocation, uintt in_nMode = CFM_RW ); diff --git a/cosv/inc/cosv/streamstr.hxx b/cosv/inc/cosv/streamstr.hxx index f91cef4c3562..67d22a5a8a69 100644 --- a/cosv/inc/cosv/streamstr.hxx +++ b/cosv/inc/cosv/streamstr.hxx @@ -88,9 +88,6 @@ class StreamStr : public bostream // LIFECYCLE StreamStr( size_type i_nCapacity ); - StreamStr( - const char * i_sInitStr, - size_type i_nCapacity ); /// Only used if > strlen(i_sInitStr). /// Copies also insert_mode and current position. StreamStr( const self & i_rOther ); @@ -207,10 +204,6 @@ class StreamStr : public bostream char i_cCarToSearch, char i_cReplacement ); - StreamStr & to_upper( - position_type i_nStart = 0, - size_type i_nLength = str::maxsize ); - // INQUIRY const char * c_str() const; const char * data() const; diff --git a/cosv/source/storage/file.cxx b/cosv/source/storage/file.cxx index 2656cbd2523d..16665d75e64e 100644 --- a/cosv/source/storage/file.cxx +++ b/cosv/source/storage/file.cxx @@ -43,15 +43,6 @@ namespace csv { -File::File( const ploc::Path & i_rLocation, - uintt i_nMode ) - : aPath(i_rLocation), - pStream(0), - nMode(i_nMode), - eLastIO(io_none) -{ -} - File::File( const char * i_sLocation, uintt i_nMode ) : aPath(i_sLocation), diff --git a/cosv/source/strings/streamstr.cxx b/cosv/source/strings/streamstr.cxx index ef266ac2d13b..309b9fc60f54 100644 --- a/cosv/source/strings/streamstr.cxx +++ b/cosv/source/strings/streamstr.cxx @@ -74,23 +74,6 @@ StreamStr::StreamStr( size_type i_nCapacity ) *pEnd = '\0'; } -StreamStr::StreamStr( const char * i_sInitStr, - size_type i_nCapacity ) - : bostream(), - nCapacity1(0), - dpData(0), - pEnd(0), - pCur(0), - eMode(str::overwrite) -{ - size_type nLength = strlen(i_sInitStr); - nCapacity1 = csv::max(nLength, i_nCapacity) + 1; - dpData = new char [nCapacity1]; - strcpy(dpData, i_sInitStr); // SAFE STRCPY (#100211# - checked) - pCur = dpData + nLength; - pEnd = pCur; -} - StreamStr::StreamStr( const self & i_rOther ) : bostream(), nCapacity1( i_rOther.nCapacity1 ), @@ -477,37 +460,6 @@ StreamStr::replace_all( char i_cCarToSearch, } } -StreamStr & -StreamStr::to_upper( position_type i_nStart, - size_type i_nLength ) -{ - static char cUpper[128] = - { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, - 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, - 96, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 123,124,125,126,127 }; - - if ( i_nStart < length() ) - { - char * pStop = i_nStart + i_nLength < length() - ? dpData + i_nStart + i_nLength - : pEnd; - for ( char * pChange = dpData + i_nStart; - pChange != pStop; - ++pChange ) - { - *pChange = (static_cast< unsigned char >(*pChange) & 0x80) == 0 - ? cUpper[ UINT8(*pChange) ] - : *pChange; - } - } - return *this; -} - class StreamStrPool { public: -- cgit