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

Michael Meeks michael at kemper.freedesktop.org
Mon Feb 13 08:05:18 PST 2012


 svx/inc/svx/svdobj.hxx         |    6 ----
 svx/inc/svx/svdsob.hxx         |    4 ---
 svx/source/svdraw/svdlayer.cxx |   54 -----------------------------------------
 svx/source/svdraw/svdobj.cxx   |   32 ------------------------
 unusedcode.easy                |   10 -------
 5 files changed, 106 deletions(-)

New commits:
commit 47716efc8e829c4fc82b22e4d62bb9480eb84aad
Author: Elton Chung <elton at layerjet.com>
Date:   Sat Feb 11 00:38:07 2012 +0800

    Remove unused code

diff --git a/svx/inc/svx/svdobj.hxx b/svx/inc/svx/svdobj.hxx
index 6ab8927..86c4fea 100644
--- a/svx/inc/svx/svdobj.hxx
+++ b/svx/inc/svx/svdobj.hxx
@@ -962,16 +962,10 @@ public:
     bool IsEdgeObj() const;
     bool Is3DObj() const;
     bool IsUnoObj() const;
-    bool IsMasterCachable() const;
-    bool ShareLock();
-    void ShareUnlock();
-    bool IsShareLock() const;
     void SetMarkProtect(bool bProt);
     bool IsMarkProtect() const;
     void SetInserted(bool bIns);
     bool IsInserted() const;
-    void SetGrouped(bool bGrp);
-    bool IsGrouped() const;
     void SetMoveProtect(bool bProt);
     bool IsMoveProtect() const;
     void SetResizeProtect(bool bProt);
diff --git a/svx/inc/svx/svdsob.hxx b/svx/inc/svx/svdsob.hxx
index 5764abe..4f7c515 100644
--- a/svx/inc/svx/svdsob.hxx
+++ b/svx/inc/svx/svdsob.hxx
@@ -95,12 +95,8 @@ public:
     }
 
     sal_Bool IsEmpty() const;
-    sal_Bool IsFull() const;
 
     sal_uInt16 GetSetCount() const;
-    sal_uInt8 GetSetBit(sal_uInt16 nNum) const;
-    sal_uInt16 GetClearCount() const;
-    sal_uInt8 GetClearBit(sal_uInt16 nNum) const;
     void operator&=(const SetOfByte& r2ndSet);
     void operator|=(const SetOfByte& r2ndSet);
 
diff --git a/svx/source/svdraw/svdlayer.cxx b/svx/source/svdraw/svdlayer.cxx
index 42d9029..f9a3f37 100644
--- a/svx/source/svdraw/svdlayer.cxx
+++ b/svx/source/svdraw/svdlayer.cxx
@@ -48,17 +48,6 @@ sal_Bool SetOfByte::IsEmpty() const
     return sal_True;
 }
 
-sal_Bool SetOfByte::IsFull() const
-{
-    for(sal_uInt16 i(0); i < 32; i++)
-    {
-        if(aData[i] != 0xFF)
-            return sal_False;
-    }
-
-    return sal_True;
-}
-
 sal_uInt16 SetOfByte::GetSetCount() const
 {
     sal_uInt16 nRet(0);
@@ -83,49 +72,6 @@ sal_uInt16 SetOfByte::GetSetCount() const
     return nRet;
 }
 
-sal_uInt8 SetOfByte::GetSetBit(sal_uInt16 nNum) const
-{
-    nNum++;
-    sal_uInt16 i(0), j(0);
-    sal_uInt16 nRet(0);
-
-    while(j < nNum && i < 256)
-    {
-        if(IsSet(sal_uInt8(i)))
-            j++;
-        i++;
-    }
-
-    if(j == nNum)
-        nRet = i - 1;
-
-    return sal_uInt8(nRet);
-}
-
-sal_uInt16 SetOfByte::GetClearCount() const
-{
-    return sal_uInt16(256 - GetSetCount());
-}
-
-sal_uInt8 SetOfByte::GetClearBit(sal_uInt16 nNum) const
-{
-    nNum++;
-    sal_uInt16 i(0), j(0);
-    sal_uInt16 nRet(0);
-
-    while(j < nNum && i < 256)
-    {
-        if(!IsSet(sal_uInt8(i)))
-            j++;
-        i++;
-    }
-
-    if(j == nNum)
-        nRet = i - 1;
-
-    return sal_uInt8(nRet);
-}
-
 void SetOfByte::operator&=(const SetOfByte& r2ndSet)
 {
     for(sal_uInt16 i(0); i < 32; i++)
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index b35877c..ed6a84b 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -2588,28 +2588,6 @@ bool SdrObject::IsUnoObj() const
     return bIsUnoObj;
 }
 
-bool SdrObject::IsMasterCachable() const
-{
-    return !bNotMasterCachable;
-}
-
-bool SdrObject::ShareLock()
-{
-    bool r = !bNetLock;
-    bNetLock = true;
-    return r;
-}
-
-void SdrObject::ShareUnlock()
-{
-    bNetLock = false;
-}
-
-bool SdrObject::IsShareLock() const
-{
-    return bNetLock;
-}
-
 void SdrObject::SetMarkProtect(bool bProt)
 {
     bMarkProt = bProt;
@@ -2625,16 +2603,6 @@ bool SdrObject::IsInserted() const
     return bInserted;
 }
 
-void SdrObject::SetGrouped(bool bGrp)
-{
-    bGrouped = bGrp;
-}
-
-bool SdrObject::IsGrouped() const
-{
-    return bGrouped;
-}
-
 bool SdrObject::IsMoveProtect() const
 {
     return bMovProt;
diff --git a/unusedcode.easy b/unusedcode.easy
index bf8ac97..7252328 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -195,22 +195,12 @@ ScaList::Insert(void*, unsigned int)
 ScrollBarBox::ScrollBarBox(Window*, ResId const&)
 ScrollableWindow::MakeVisible(Rectangle const&, unsigned char)
 SdFilterDetect::impl_createFactory(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
-SdrObject::IsGrouped() const
-SdrObject::IsMasterCachable() const
-SdrObject::IsShareLock() const
-SdrObject::SetGrouped(bool)
-SdrObject::ShareLock()
-SdrObject::ShareUnlock()
 SectReprArr::Insert(SectRepr* const&, unsigned short&)
 SectReprArr::Insert(SectRepr* const*, unsigned short)
 SectReprArr::Insert(SectReprArr const*, unsigned short, unsigned short)
 SectReprArr::Remove(SectRepr* const&, unsigned short)
 SectReprArr::Remove(unsigned short, unsigned short)
 SecurityEnvironment_NssImpl::getImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>)
-SetOfByte::GetClearBit(unsigned short) const
-SetOfByte::GetClearCount() const
-SetOfByte::GetSetBit(unsigned short) const
-SetOfByte::IsFull() const
 SfxAppMenuControl_Impl::RegisterControl(unsigned short, SfxModule*)
 SfxApplication::Main()
 SfxBrushItemLink::Set(SfxBrushItemLink*)


More information about the Libreoffice-commits mailing list