Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


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.goss@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


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.