summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-11 00:38:07 +0800
committerMichael Meeks <michael.meeks@suse.com>2012-02-13 15:59:15 +0000
commit47716efc8e829c4fc82b22e4d62bb9480eb84aad (patch)
tree385a6b9ccd96302f753121f5ca2d978907bde522 /svx
parent952b46570c175dda8b975ad3bc8ef56e747796be (diff)
Remove unused code
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/svx/svdobj.hxx6
-rw-r--r--svx/inc/svx/svdsob.hxx4
-rw-r--r--svx/source/svdraw/svdlayer.cxx54
-rw-r--r--svx/source/svdraw/svdobj.cxx32
4 files changed, 0 insertions, 96 deletions
diff --git a/svx/inc/svx/svdobj.hxx b/svx/inc/svx/svdobj.hxx
index 6ab8927c2c3a..86c4feac7fe1 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 5764abe74aaf..4f7c5159babc 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 42d90291e4fa..f9a3f373b341 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 b35877cfa2aa..ed6a84bfe727 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;