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

Michael Meeks michael at kemper.freedesktop.org
Tue Mar 6 07:02:54 PST 2012


 codemaker/inc/codemaker/global.hxx    |    1 -
 codemaker/source/codemaker/global.cxx |   23 -----------------------
 sc/inc/callform.hxx                   |    2 --
 sc/source/core/tool/callform.cxx      |   11 -----------
 svx/inc/svx/graphctl.hxx              |    1 -
 svx/source/dialog/graphctl.cxx        |   21 ---------------------
 unusedcode.easy                       |    3 ---
 7 files changed, 62 deletions(-)

New commits:
commit 51791eaf8611287c21ad53645036a77c1dd84ddf
Author: Michael Meeks <michael.meeks at suse.com>
Date:   Tue Mar 6 15:01:13 2012 +0000

    remove misc. unused code

diff --git a/codemaker/inc/codemaker/global.hxx b/codemaker/inc/codemaker/global.hxx
index 2406305..3134daa 100644
--- a/codemaker/inc/codemaker/global.hxx
+++ b/codemaker/inc/codemaker/global.hxx
@@ -87,7 +87,6 @@ class FileStream
 {
 public:
     FileStream();
-    FileStream(const ::rtl::OString& name, FileAccessMode nMode = FAM_READWRITE);
     virtual ~FileStream();
 
     sal_Bool isValid();
diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx
index af87ee8..ebcd3c0 100644
--- a/codemaker/source/codemaker/global.cxx
+++ b/codemaker/source/codemaker/global.cxx
@@ -295,29 +295,6 @@ FileStream::FileStream()
 {
 }
 
-FileStream::FileStream(const OString& name, FileAccessMode mode)
-    : m_file(NULL)
-{
-    if ( !name.isEmpty() )
-    {
-        OUString sUrl(convertToFileUrl(name));
-#ifdef SAL_UNX
-        sal_uInt64 uAttr = osl_File_Attribute_OwnWrite |
-                           osl_File_Attribute_OwnRead |
-                           osl_File_Attribute_GrpWrite |
-                           osl_File_Attribute_GrpRead |
-                           osl_File_Attribute_OthRead;
-        if (osl_openFile(sUrl.pData, &m_file, checkAccessMode(mode)) == osl_File_E_None &&
-            osl_setFileAttributes(sUrl.pData, uAttr) == osl_File_E_None)
-#else
-        if (osl_openFile(sUrl.pData, &m_file, checkAccessMode(mode)) == osl_File_E_None)
-#endif
-            m_name = name;
-        else
-            m_file = NULL;
-    }
-}
-
 FileStream::~FileStream()
 {
     if ( isValid() )
diff --git a/sc/inc/callform.hxx b/sc/inc/callform.hxx
index 46348bd..023ee45 100644
--- a/sc/inc/callform.hxx
+++ b/sc/inc/callform.hxx
@@ -69,8 +69,6 @@ class FuncData
     sal_uInt16      nParamCount;
     ParamType   eAsyncType;
     ParamType   eParamType[MAXFUNCPARAM];
-private:
-    FuncData(const rtl::OUString& rIName);
 public:
     FuncData(const ModuleData*pModule,
              const rtl::OUString& rIName,
diff --git a/sc/source/core/tool/callform.cxx b/sc/source/core/tool/callform.cxx
index 4fa3d1d..3f8ad8b 100644
--- a/sc/source/core/tool/callform.cxx
+++ b/sc/source/core/tool/callform.cxx
@@ -101,17 +101,6 @@ public:
     void            FreeInstance() { delete pInstance; pInstance = 0; }
 };
 
-FuncData::FuncData(const rtl::OUString& rIName) :
-    pModuleData     (NULL),
-    aInternalName   (rIName),
-    nNumber         (0),
-    nParamCount     (0),
-    eAsyncType      (NONE)
-{
-    for (sal_uInt16 i = 0; i < MAXFUNCPARAM; i++)
-        eParamType[i] = PTR_DOUBLE;
-}
-
 //------------------------------------------------------------------------
 
 FuncData::FuncData(const ModuleData*pModule,
diff --git a/svx/inc/svx/graphctl.hxx b/svx/inc/svx/graphctl.hxx
index b235210..21c376c 100644
--- a/svx/inc/svx/graphctl.hxx
+++ b/svx/inc/svx/graphctl.hxx
@@ -91,7 +91,6 @@ protected:
 
 public:
 
-                        GraphCtrl( Window* pParent, const WinBits nWinBits = 0 );
                         GraphCtrl( Window* pParent, const ResId& rResId );
                         ~GraphCtrl();
 
diff --git a/svx/source/dialog/graphctl.cxx b/svx/source/dialog/graphctl.cxx
index d8f3f9f..019cf61 100644
--- a/svx/source/dialog/graphctl.cxx
+++ b/svx/source/dialog/graphctl.cxx
@@ -63,27 +63,6 @@ void GraphCtrlUserCall::Changed( const SdrObject& rObj, SdrUserCallType eType, c
     }
 }
 
-GraphCtrl::GraphCtrl( Window* pParent, const WinBits nWinBits ) :
-            Control         ( pParent, nWinBits ),
-            aMap100         ( MAP_100TH_MM ),
-            eObjKind        ( OBJ_NONE ),
-            nPolyEdit       ( 0 ),
-            bEditMode       ( sal_False ),
-            bSdrMode        ( sal_False ),
-            mpAccContext    ( NULL ),
-            pModel          ( NULL ),
-            pView           ( NULL )
-{
-    pUserCall = new GraphCtrlUserCall( *this );
-    aUpdateTimer.SetTimeout( 200 );
-    aUpdateTimer.SetTimeoutHdl( LINK( this, GraphCtrl, UpdateHdl ) );
-    aUpdateTimer.Start();
-
-    SetWinStyle( nWinBits );
-
-    EnableRTL( sal_False );
-}
-
 GraphCtrl::GraphCtrl( Window* pParent, const ResId& rResId ) :
             Control         ( pParent, rResId ),
             aMap100         ( MAP_100TH_MM ),
diff --git a/unusedcode.easy b/unusedcode.easy
index 7b0a3b7..e9157ed 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -5,7 +5,6 @@ CharPosArray::Replace(int const&, unsigned short)
 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&)
-FileStream::FileStream(rtl::OString const&, FileAccessMode)
 FmEntryDataArray::DeleteAndDestroy(unsigned short, unsigned short)
 FmEntryDataArray::Insert(FmEntryData* const&, unsigned short&)
 FmEntryDataArray::Insert(FmEntryData* const*, unsigned short)
@@ -16,8 +15,6 @@ FmFormObj::getType() const
 FmPropBrwMgr::GetChildWindowId()
 FontSelectPattern::FontSelectPattern(ImplFontData const&, Size const&, float, int, bool)
 FontStyleBox::FontStyleBox(Window*, long)
-FuncData::FuncData(rtl::OUString const&)
-GraphCtrl::GraphCtrl(Window*, long)
 HTMLControls::Insert(HTMLControl const*&, unsigned short&)
 HTMLControls::Insert(HTMLControl const**, unsigned short)
 HTMLControls::Insert(HTMLControls const*, unsigned short, unsigned short)


More information about the Libreoffice-commits mailing list