summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-14 12:07:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-14 15:19:49 +0100
commit7843cfd879d4d06e441e4b3ae2f5336149c3570c (patch)
tree80dcec93d796c91f3d08fb2f58d6eeb39db67391 /tools
parentcan shrink these buffers to minimum required (diff)
downloadcore-7843cfd879d4d06e441e4b3ae2f5336149c3570c.tar.gz
core-7843cfd879d4d06e441e4b3ae2f5336149c3570c.zip
remove GetCleanedNextLine
Diffstat (limited to 'tools')
-rw-r--r--tools/bootstrp/prj.cxx46
-rw-r--r--tools/inc/bootstrp/prj.hxx1
-rw-r--r--tools/workben/mempooltest.cxx3
3 files changed, 4 insertions, 46 deletions
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx
index 04c391edca14..97a8c84a63cf 100644
--- a/tools/bootstrp/prj.cxx
+++ b/tools/bootstrp/prj.cxx
@@ -117,48 +117,4 @@ ByteString SimpleConfig::GetNextLine()
return aTmpStr;
}
-/*****************************************************************************/
-ByteString SimpleConfig::GetCleanedNextLine( sal_Bool bReadComments )
-/*****************************************************************************/
-{
-
- aFileStream.ReadLine ( aTmpStr );
- if ( aTmpStr.Search( "#" ) == 0 )
- {
- if (bReadComments )
- return aTmpStr;
- else
- while ( aTmpStr.Search( "#" ) == 0 )
- {
- aFileStream.ReadLine ( aTmpStr );
- }
- }
-
- aTmpStr = aTmpStr.EraseLeadingChars();
- aTmpStr = aTmpStr.EraseTrailingChars();
- int nLength = aTmpStr.Len();
- ByteString aEraseString;
- sal_Bool bFirstTab = sal_True;
- for ( sal_uInt16 i = 0; i<= nLength; i++)
- {
- if ( aTmpStr.GetChar( i ) == 0x20 )
- aTmpStr.SetChar( i, 0x09 );
-
- if ( aTmpStr.GetChar( i ) == 0x09 )
- {
- if ( bFirstTab )
- bFirstTab = sal_False;
- else
- {
- aTmpStr.SetChar( i, 0x20 );
- }
- }
- else
- bFirstTab = sal_True;
-
- }
- aTmpStr.EraseAllChars(' ');
- return aTmpStr;
-
-}
-
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/inc/bootstrp/prj.hxx b/tools/inc/bootstrp/prj.hxx
index c85928ce11ba..579666a32871 100644
--- a/tools/inc/bootstrp/prj.hxx
+++ b/tools/inc/bootstrp/prj.hxx
@@ -53,7 +53,6 @@ public:
SimpleConfig(DirEntry& rDirEntry);
~SimpleConfig();
ByteString GetNext();
- ByteString GetCleanedNextLine( sal_Bool bReadComments = sal_False );
};
#endif
diff --git a/tools/workben/mempooltest.cxx b/tools/workben/mempooltest.cxx
index bf00343bc9d6..e99e2175d372 100644
--- a/tools/workben/mempooltest.cxx
+++ b/tools/workben/mempooltest.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#include "tools/mempool.hxx"
struct MempoolTest
@@ -16,3 +17,5 @@ int main()
delete p;
return 1;
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */