Kaydet (Commit) 154fcad5 authored tarafından Zolnai Tamás's avatar Zolnai Tamás

ForceSwap{In,Out}Objects methods are unused now

They are called only by themselves recuirsively,
but not from outside.

Change-Id: I1cde392c95bbc60ac7937d0bf3cd4b0fd062568b
üst 19596ddb
...@@ -169,11 +169,6 @@ public: ...@@ -169,11 +169,6 @@ public:
// Zaehlt alle Objekte inkl. Objekte in Objektgruppen, ... // Zaehlt alle Objekte inkl. Objekte in Objektgruppen, ...
size_t CountAllObjects() const; size_t CountAllObjects() const;
// Alle aufgelagerten Teile (z.B. Grafiken) der Liste in den
// Speicher laden.
void ForceSwapInObjects() const;
void ForceSwapOutObjects() const;
/** Makes the object list flat, i.e. the object list content are /** Makes the object list flat, i.e. the object list content are
then tree leaves then tree leaves
......
...@@ -735,37 +735,6 @@ size_t SdrObjList::CountAllObjects() const ...@@ -735,37 +735,6 @@ size_t SdrObjList::CountAllObjects() const
return nCnt; return nCnt;
} }
void SdrObjList::ForceSwapInObjects() const
{
for (size_t nObjNum=GetObjCount(); nObjNum>0;) {
SdrObject* pObj=GetObj(--nObjNum);
SdrGrafObj* pGrafObj=PTR_CAST(SdrGrafObj,pObj);
if (pGrafObj!=NULL) {
pGrafObj->ForceSwapIn();
}
SdrObjList* pOL=pObj->GetSubList();
if (pOL!=NULL) {
pOL->ForceSwapInObjects();
}
}
}
void SdrObjList::ForceSwapOutObjects() const
{
const size_t nObjAnz = GetObjCount();
for (size_t nObjNum=nObjAnz; nObjNum>0;) {
SdrObject* pObj=GetObj(--nObjNum);
SdrGrafObj* pGrafObj=PTR_CAST(SdrGrafObj,pObj);
if (pGrafObj!=NULL) {
pGrafObj->ForceSwapOut();
}
SdrObjList* pOL=pObj->GetSubList();
if (pOL!=NULL) {
pOL->ForceSwapOutObjects();
}
}
}
void SdrObjList::FlattenGroups() void SdrObjList::FlattenGroups()
{ {
const size_t nObj = GetObjCount(); const size_t nObj = GetObjCount();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment