[Libreoffice-commits] .: codemaker/inc codemaker/source unusedcode.easy

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 14 23:31:36 PST 2012


 codemaker/inc/codemaker/global.hxx    |    1 -
 codemaker/source/codemaker/global.cxx |   12 ------------
 unusedcode.easy                       |    1 -
 3 files changed, 14 deletions(-)

New commits:
commit 823b334ad73c1caa961b8ff55bf59600ae137741
Author: Enrico Weigelt, metux ITS <metuxitservice at googlemail.com>
Date:   Thu Nov 15 08:30:26 2012 +0100

    dropped unused method: FileStream::open
    
    Change-Id: I3e6c1341666fddcfd1bd272a0943ca1de3e5d629
    Reviewed-on: https://gerrit.libreoffice.org/1072
    Reviewed-by: Tor Lillqvist <tml at iki.fi>
    Tested-by: Tor Lillqvist <tml at iki.fi>

diff --git a/codemaker/inc/codemaker/global.hxx b/codemaker/inc/codemaker/global.hxx
index af682ea..359596d 100644
--- a/codemaker/inc/codemaker/global.hxx
+++ b/codemaker/inc/codemaker/global.hxx
@@ -82,7 +82,6 @@ public:
 
     sal_Bool isValid();
 
-    void open(const ::rtl::OString& name, FileAccessMode nMode = FAM_READWRITE);
     void createTempFile(const ::rtl::OString& sPath);
     void close();
 
diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx
index 9130fd1..35d7ed0 100644
--- a/codemaker/source/codemaker/global.cxx
+++ b/codemaker/source/codemaker/global.cxx
@@ -330,18 +330,6 @@ void FileStream::createTempFile(const OString& sPath)
         m_file = NULL;
 }
 
-void FileStream::open(const OString& name, FileAccessMode mode)
-{
-    if ( !name.isEmpty() )
-    {
-        oslFileError ret =  osl_File_E_None;
-        if ((ret = osl_openFile(convertToFileUrl(name).pData, &m_file, checkAccessMode(mode))) == osl_File_E_None)
-            m_name = name;
-        else
-            m_file = NULL;
-    }
-}
-
 void FileStream::close()
 {
     if ( isValid() )
diff --git a/unusedcode.easy b/unusedcode.easy
index 55a29ae..cc9cdb0 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1,4 +1,3 @@
-FileStream::open(rtl::OString const&, FileAccessMode)
 FontSelectPattern::FontSelectPattern(PhysicalFontFace const&, Size const&, float, int, bool)
 GraphicObject::SwapIn(SvStream*)
 LiblantagDataRef::presetDataPath(rtl::OUString const&)


More information about the Libreoffice-commits mailing list