summaryrefslogtreecommitdiffstats
path: root/tools/bootstrp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-14 12:23:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-14 15:19:50 +0100
commita46250a367a29a30d3f9ae23dce947cdca8fca9e (patch)
treedb3a01311bcb05d5faf4374d0be4948062717190 /tools/bootstrp
parentremove GetCleanedNextLine (diff)
downloadcore-a46250a367a29a30d3f9ae23dce947cdca8fca9e.tar.gz
core-a46250a367a29a30d3f9ae23dce947cdca8fca9e.zip
remove unused methods and variables
Diffstat (limited to 'tools/bootstrp')
-rw-r--r--tools/bootstrp/prj.cxx37
1 files changed, 3 insertions, 34 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 )