diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-14 12:23:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-14 15:19:50 +0100 |
commit | a46250a367a29a30d3f9ae23dce947cdca8fca9e (patch) | |
tree | db3a01311bcb05d5faf4374d0be4948062717190 /tools | |
parent | 7843cfd879d4d06e441e4b3ae2f5336149c3570c (diff) |
remove unused methods and variables
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bootstrp/prj.cxx | 37 | ||||
-rw-r--r-- | tools/inc/bootstrp/prj.hxx | 17 |
2 files changed, 10 insertions, 44 deletions
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx index 97a8c84a63cf..00be3bedddee 100644 --- a/tools/bootstrp/prj.cxx +++ b/tools/bootstrp/prj.cxx @@ -43,49 +43,24 @@ #define PATH_DELIMETER '/' #endif -//Link Star::aDBNotFoundHdl; - -// -// class SimpleConfig -// - -/*****************************************************************************/ -SimpleConfig::SimpleConfig( String aSimpleConfigFileName ) -/*****************************************************************************/ +SimpleConfig::SimpleConfig(const String &rSimpleConfigFileName) { - nLine = 0; - aFileName = aSimpleConfigFileName; - aFileStream.Open ( aFileName, STREAM_READ ); + aFileStream.Open(rSimpleConfigFileName, STREAM_READ); } -/*****************************************************************************/ -SimpleConfig::SimpleConfig( DirEntry& rDirEntry ) -/*****************************************************************************/ -{ - nLine = 0; - aFileName = rDirEntry.GetFull(); - aFileStream.Open ( aFileName, STREAM_READ ); -} - -/*****************************************************************************/ SimpleConfig::~SimpleConfig() -/*****************************************************************************/ { aFileStream.Close (); } -/*****************************************************************************/ ByteString SimpleConfig::GetNext() -/*****************************************************************************/ { - ByteString aString; - if ( aStringBuffer =="" ) while ((aStringBuffer = GetNextLine()) == "\t") ; //solange bis != "\t" if ( aStringBuffer =="" ) return ByteString(); - aString = aStringBuffer.GetToken(0,'\t'); + ByteString aString = aStringBuffer.GetToken(0,'\t'); aStringBuffer.Erase(0, aString.Len()+1); aStringBuffer.EraseLeadingChars( '\t' ); @@ -93,13 +68,8 @@ ByteString SimpleConfig::GetNext() return aString; } -/*****************************************************************************/ ByteString SimpleConfig::GetNextLine() -/*****************************************************************************/ { - ByteString aSecStr; - nLine++; - aFileStream.ReadLine ( aTmpStr ); if ( aTmpStr.Search( "#" ) == 0 ) return "\t"; @@ -108,7 +78,6 @@ ByteString SimpleConfig::GetNextLine() while ( aTmpStr.SearchAndReplace(ByteString(' '),ByteString('\t') ) != STRING_NOTFOUND ) ; int nLength = aTmpStr.Len(); sal_Bool bFound = sal_False; - ByteString aEraseString; for ( sal_uInt16 i = 0; i<= nLength; i++) { if ( aTmpStr.GetChar( i ) == 0x20 && !bFound ) diff --git a/tools/inc/bootstrp/prj.hxx b/tools/inc/bootstrp/prj.hxx index 579666a32871..496f47bc88d1 100644 --- a/tools/inc/bootstrp/prj.hxx +++ b/tools/inc/bootstrp/prj.hxx @@ -41,18 +41,15 @@ class SimpleConfig { - long nLine; - String aFileName; - SvFileStream aFileStream; - ByteString aTmpStr; - ByteString aStringBuffer; + SvFileStream aFileStream; + ByteString aTmpStr; + ByteString aStringBuffer; - ByteString GetNextLine(); + ByteString GetNextLine(); public: - SimpleConfig(String aSimpleConfigFileName); - SimpleConfig(DirEntry& rDirEntry); - ~SimpleConfig(); - ByteString GetNext(); + SimpleConfig(const String& rSimpleConfigFileName); + ~SimpleConfig(); + ByteString GetNext(); }; #endif |