Hi,

Another patch to remove methods listed as unused in unusedcode.easy

Kate
From e1934638ebc6f8456921c3b371997e878b414b28 Mon Sep 17 00:00:00 2001
From: Kate Goss <katherine.g...@gmail.com>
Date: Wed, 15 Feb 2012 20:19:18 +0000
Subject: [PATCH] Remove unused code from l10ntools Export

Remove getCurrentDir( std::string& dir );
Remove GetNativeFile( rtl::OString const & sSource );
---
 l10ntools/inc/export.hxx     |    3 ---
 l10ntools/source/export2.cxx |   18 ------------------
 unusedcode.easy              |    2 --
 3 files changed, 0 insertions(+), 23 deletions(-)

diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index 5e08239..8866cbe 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -317,9 +317,6 @@ public:
 
     static void Languages( std::vector<rtl::OString>::const_iterator& begin , std::vector<rtl::OString>::const_iterator& end );
     static rtl::OString getRandomName(const rtl::OString& rPrefix, const rtl::OString & sPostfix);
-    static void getCurrentDir( std::string& dir );
-
-    static rtl::OString GetNativeFile( rtl::OString const & sSource );
 
     static void DumpExportList(const rtl::OString& rListName,
         ExportList& aList);
diff --git a/l10ntools/source/export2.cxx b/l10ntools/source/export2.cxx
index 1a1ae91..1c0681c 100644
--- a/l10ntools/source/export2.cxx
+++ b/l10ntools/source/export2.cxx
@@ -335,14 +335,6 @@ void Export::InitForcedLanguages( bool bMergeMode ){
     while ( nIndex >= 0 );
 }
 
-/*****************************************************************************/
-rtl::OString Export::GetNativeFile( rtl::OString const & sSource )
-/*****************************************************************************/
-{
-    //TODO: Drop this completely unless line end conversion *is* an issue
-    return sSource;
-}
-
 const char* Export::GetEnv( const char *pVar )
 {
         char *pRet = getenv( pVar );
@@ -351,16 +343,6 @@ const char* Export::GetEnv( const char *pVar )
         return pRet;
 }
 
-void Export::getCurrentDir( std::string& dir )
-{
-    char buffer[64000];
-    if( getcwd( buffer , sizeof( buffer ) ) == 0 ){
-        std::cerr << "Error: getcwd failed!\n";
-        exit( -1 );
-    }
-    dir = std::string( buffer );
-}
-
 
 // Stolen from sal/osl/unx/tempfile.c
 
diff --git a/unusedcode.easy b/unusedcode.easy
index f5d4b3e..ec07a43 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -24,8 +24,6 @@ CharPosArray::Replace(int const*, unsigned short, unsigned short)
 CharPosArray::_ForEach(unsigned short, unsigned short, unsigned char (*)(int const&, void*), void*)
 Dialog::Dialog(Window*, ResId const&)
 DirEntry::SetBase(String const&, char)
-Export::GetNativeFile(rtl::OString const&)
-Export::getCurrentDir(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)
 FileStream::FileStream(rtl::OString const&, FileAccessMode)
 FmEntryDataArray::DeleteAndDestroy(unsigned short, unsigned short)
 FmEntryDataArray::Insert(FmEntryData* const&, unsigned short&)
-- 
1.7.9

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to