summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-26 12:08:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-26 12:44:31 +0000
commit0d3e45608a5771b58ad2f7bea0989d635f25c47c (patch)
treeb231a0cd689f7ec358ac7a4305b4aeda47b4a8f9 /rsc
parenta324099538916eae7f7239d32fd98ec8018cbb72 (diff)
SfxSlotInfo is unused
Change-Id: I8d5438ca338868c77dcf489609a4e007cfe925fd Reviewed-on: https://gerrit.libreoffice.org/30290 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'rsc')
-rw-r--r--rsc/inc/rscclass.hxx4
-rw-r--r--rsc/inc/rscdb.hxx2
-rw-r--r--rsc/inc/rsctop.hxx5
-rw-r--r--rsc/source/parser/rscicpx.cxx20
-rw-r--r--rsc/source/parser/rscinit.cxx4
-rw-r--r--rsc/source/res/rscclass.cxx10
-rw-r--r--rsc/source/res/rsctop.cxx11
7 files changed, 0 insertions, 56 deletions
diff --git a/rsc/inc/rscclass.hxx b/rsc/inc/rscclass.hxx
index c34ac7fdf4b5..c38dfd646719 100644
--- a/rsc/inc/rscclass.hxx
+++ b/rsc/inc/rscclass.hxx
@@ -63,10 +63,6 @@ public:
void Pre_dtor() override;
ERRTYPE SetVariable( Atom nVarName, RscTop * pClass,
- RSCINST * pDflt,
- RSCVAR nVarType, SfxSlotInfo nMask,
- Atom nDataBaseName = InvalidAtom ) override;
- ERRTYPE SetVariable( Atom nVarName, RscTop * pClass,
RSCINST * pDflt = nullptr,
RSCVAR nVarType = 0, sal_uInt32 nMask = 0,
Atom nDataBaseName = InvalidAtom ) override;
diff --git a/rsc/inc/rscdb.hxx b/rsc/inc/rscdb.hxx
index cc5ad46c62f7..e452f4d9ee48 100644
--- a/rsc/inc/rscdb.hxx
+++ b/rsc/inc/rscdb.hxx
@@ -109,8 +109,6 @@ class RscTypCont
RscTop * InitClassMenuItem( RscTop * pSuper );
RscTop * InitClassMenu( RscTop * pSuper, RscTop * pMenuItem );
- RscTop * InitClassSfxSlotInfo( RscTop * pSuper );
-
public:
RscBool aBool;
RscRange aShort;
diff --git a/rsc/inc/rsctop.hxx b/rsc/inc/rsctop.hxx
index 7fc035ba8d46..b4feec0166f8 100644
--- a/rsc/inc/rsctop.hxx
+++ b/rsc/inc/rsctop.hxx
@@ -82,11 +82,6 @@ public:
// sets the variable
virtual ERRTYPE SetVariable( Atom nVarName, RscTop * pClass,
- RSCINST * pDflt,
- RSCVAR nVarType, SfxSlotInfo nMask,
- Atom nDataBaseName = InvalidAtom );
-
- virtual ERRTYPE SetVariable( Atom nVarName, RscTop * pClass,
RSCINST * pDflt = nullptr,
RSCVAR nVarType = 0, sal_uInt32 nMask = 0,
Atom nDataBaseName = InvalidAtom );
diff --git a/rsc/source/parser/rscicpx.cxx b/rsc/source/parser/rscicpx.cxx
index 9cf0bea4dedd..857d4aa61291 100644
--- a/rsc/source/parser/rscicpx.cxx
+++ b/rsc/source/parser/rscicpx.cxx
@@ -364,24 +364,4 @@ RscTop * RscTypCont::InitClassMenu( RscTop * pSuper,
return pClassMenu;
}
-RscTop * RscTypCont::InitClassSfxSlotInfo( RscTop * pSuper )
-{
- Atom nId;
- RscTop * pClassSfxSlotInfo;
-
- // initialize class
- nId = pHS->getID( "SfxSlotInfo" );
- pClassSfxSlotInfo = new RscClass( nId, RSC_SFX_SLOT_INFO, pSuper );
- aNmTb.Put( nId, CLASSNAME, pClassSfxSlotInfo );
-
- nId = aNmTb.Put( "SlotName", VARNAME );
- pClassSfxSlotInfo->SetVariable( nId, &aLangString, nullptr, 0,
- SfxSlotInfo::SlotName );
- nId = aNmTb.Put( "HelpText", VARNAME );
- pClassSfxSlotInfo->SetVariable( nId, &aLangString, nullptr, 0,
- SfxSlotInfo::HelpText );
- return pClassSfxSlotInfo;
-}
-
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/rsc/source/parser/rscinit.cxx b/rsc/source/parser/rscinit.cxx
index 699cd5e08225..ee821630c0dd 100644
--- a/rsc/source/parser/rscinit.cxx
+++ b/rsc/source/parser/rscinit.cxx
@@ -167,10 +167,6 @@ void RscTypCont::Init()
pClassMenuItem->SetVariable( nId, pClassMenu, nullptr, VAR_SVDYNAMIC,
(sal_uInt32)RscMenuItem::Menu );
}
-{
- RscTop* pClassSfxSlotInfo = InitClassSfxSlotInfo( pClassMgr );
- pRoot->Insert( pClassSfxSlotInfo );
-}
aNmTb.SetSort();
}
diff --git a/rsc/source/res/rscclass.cxx b/rsc/source/res/rscclass.cxx
index e1faf7ec4f14..3b3d36bd6960 100644
--- a/rsc/source/res/rscclass.cxx
+++ b/rsc/source/res/rscclass.cxx
@@ -277,16 +277,6 @@ ERRTYPE RscClass::SetVariable( Atom nVarName,
return ERR_OK;
}
-ERRTYPE RscClass::SetVariable( Atom nVarName,
- RscTop * pClass,
- RSCINST * pDflt,
- RSCVAR nVarType,
- SfxSlotInfo nMask,
- Atom nDataBaseName)
-{
- return SetVariable(nVarName, pClass, pDflt, nVarType, (sal_uInt32)nMask, nDataBaseName);
-}
-
void RscClass::EnumVariables( void * pData, VarEnumCallbackProc pProc )
{
sal_uInt32 i;
diff --git a/rsc/source/res/rsctop.cxx b/rsc/source/res/rsctop.cxx
index 763e6ffcc085..6117bf9c1d62 100644
--- a/rsc/source/res/rsctop.cxx
+++ b/rsc/source/res/rsctop.cxx
@@ -102,17 +102,6 @@ ERRTYPE RscTop::SetVariable( Atom nVarName, RscTop * pClass,
return ERR_UNKNOWN_METHOD;
}
-ERRTYPE RscTop::SetVariable( Atom nVarName, RscTop * pClass,
- RSCINST * pDflt, RSCVAR nVarType, SfxSlotInfo nMask,
- Atom nDataBaseName )
-{
- if( pSuperClass )
- return pSuperClass->SetVariable( nVarName, pClass, pDflt,
- nVarType, nMask, nDataBaseName );
- else
- return ERR_UNKNOWN_METHOD;
-}
-
void RscTop::EnumVariables( void * pData, VarEnumCallbackProc pProc )
{
if( pSuperClass )