summaryrefslogtreecommitdiff
path: root/sfx2/source/control
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-04-12 00:39:22 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-04-12 00:45:21 +0900
commit25c70a72327116d257e41bcc67a3992a07bf7863 (patch)
tree55d4d7400a5e25141d727ecc18c9b163a0598be1 /sfx2/source/control
parente486ed7b7f3d8f90e118ec19e4c347ce236de606 (diff)
removed useless static data
Diffstat (limited to 'sfx2/source/control')
-rw-r--r--sfx2/source/control/bindings.cxx6
-rw-r--r--sfx2/source/control/macrconf.cxx3
2 files changed, 0 insertions, 9 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx
index ec29ed93c2cb..a4de3f3efc86 100644
--- a/sfx2/source/control/bindings.cxx
+++ b/sfx2/source/control/bindings.cxx
@@ -97,9 +97,6 @@ static sal_uInt16 nTimeOut = 300;
#define TIMEOUT_UPDATING 20
#define TIMEOUT_IDLE 2500
-static sal_uInt32 nCache1 = 0;
-static sal_uInt32 nCache2 = 0;
-
typedef boost::unordered_map< sal_uInt16, bool > InvalidateSlotMap;
//====================================================================
@@ -916,15 +913,12 @@ sal_uInt16 SfxBindings::GetSlotPos( sal_uInt16 nId, sal_uInt16 nStartSearchAt )
if ( pImp->nCachedFunc1 < pImp->pCaches->Count() &&
(*pImp->pCaches)[pImp->nCachedFunc1]->GetId() == nId )
{
- ++nCache1;
DBG_PROFSTOP(SfxBindingsMsgPos);
return pImp->nCachedFunc1;
}
if ( pImp->nCachedFunc2 < pImp->pCaches->Count() &&
(*pImp->pCaches)[pImp->nCachedFunc2]->GetId() == nId )
{
- ++nCache2;
-
// swap the caches
sal_uInt16 nTemp = pImp->nCachedFunc1;
pImp->nCachedFunc1 = pImp->nCachedFunc2;
diff --git a/sfx2/source/control/macrconf.cxx b/sfx2/source/control/macrconf.cxx
index 03ee7e18ba6d..c649a25c2e87 100644
--- a/sfx2/source/control/macrconf.cxx
+++ b/sfx2/source/control/macrconf.cxx
@@ -59,9 +59,6 @@
#include "objshimp.hxx"
#include <sfx2/request.hxx>
-static const sal_uInt16 nCompatVersion = 2;
-static const sal_uInt16 nVersion = 3;
-
// Static member
SfxMacroConfig* SfxMacroConfig::pMacroConfig = NULL;