summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-03 08:46:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-03 08:59:39 +0000
commitf4826959c1a5b0e6d2849d4240668b2087582848 (patch)
tree32589cbf4cbdcd20ff09417f4906f10fc7a4525f /framework
parent83721f4365d234b62f9e3517345c8d3fda19f2c6 (diff)
new loplugin:unusedenumconstants
These are the simple removals, where it is obviously safe, the more complex ones will come in separate commits Change-Id: I7211945a6a5576354b60d9c709940ce9b674f308 Reviewed-on: https://gerrit.libreoffice.org/33828 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r--framework/inc/services/layoutmanager.hxx2
-rw-r--r--framework/inc/xml/imagesdocumenthandler.hxx3
-rw-r--r--framework/inc/xml/statusbardocumenthandler.hxx3
-rw-r--r--framework/inc/xml/toolboxdocumenthandler.hxx3
-rw-r--r--framework/source/uiconfiguration/imagemanagerimpl.hxx7
5 files changed, 3 insertions, 15 deletions
diff --git a/framework/inc/services/layoutmanager.hxx b/framework/inc/services/layoutmanager.hxx
index 7ddf501f3007..c24455695c13 100644
--- a/framework/inc/services/layoutmanager.hxx
+++ b/framework/inc/services/layoutmanager.hxx
@@ -78,8 +78,6 @@ namespace framework
public LayoutManager_PBase
{
public:
- enum { DOCKINGAREAS_COUNT = 4 };
-
LayoutManager( const css::uno::Reference< css::uno::XComponentContext >& xContext );
virtual ~LayoutManager() override;
diff --git a/framework/inc/xml/imagesdocumenthandler.hxx b/framework/inc/xml/imagesdocumenthandler.hxx
index d416f2f40e32..8fc1636e6dc0 100644
--- a/framework/inc/xml/imagesdocumenthandler.hxx
+++ b/framework/inc/xml/imagesdocumenthandler.hxx
@@ -60,8 +60,7 @@ class OReadImagesDocumentHandler : public ::cppu::WeakImplHelper< css::xml::sax:
enum Image_XML_Namespace
{
IMG_NS_IMAGE,
- IMG_NS_XLINK,
- TBL_XML_NAMESPACES_COUNT
+ IMG_NS_XLINK
};
OReadImagesDocumentHandler( ImageListsDescriptor& aItems );
diff --git a/framework/inc/xml/statusbardocumenthandler.hxx b/framework/inc/xml/statusbardocumenthandler.hxx
index 9fad56eda216..321d3d352d85 100644
--- a/framework/inc/xml/statusbardocumenthandler.hxx
+++ b/framework/inc/xml/statusbardocumenthandler.hxx
@@ -57,8 +57,7 @@ class FWE_DLLPUBLIC OReadStatusBarDocumentHandler :
enum StatusBar_XML_Namespace
{
SB_NS_STATUSBAR,
- SB_NS_XLINK,
- SB_XML_NAMESPACES_COUNT
+ SB_NS_XLINK
};
OReadStatusBarDocumentHandler( const css::uno::Reference< css::container::XIndexContainer >& aStatusBarItems );
diff --git a/framework/inc/xml/toolboxdocumenthandler.hxx b/framework/inc/xml/toolboxdocumenthandler.hxx
index 5e7488b3e5c2..4b6a4680a79e 100644
--- a/framework/inc/xml/toolboxdocumenthandler.hxx
+++ b/framework/inc/xml/toolboxdocumenthandler.hxx
@@ -57,8 +57,7 @@ class FWE_DLLPUBLIC OReadToolBoxDocumentHandler :
enum ToolBox_XML_Namespace
{
TB_NS_TOOLBAR,
- TB_NS_XLINK,
- TB_XML_NAMESPACES_COUNT
+ TB_NS_XLINK
};
OReadToolBoxDocumentHandler( const css::uno::Reference< css::container::XIndexContainer >& rItemContainer );
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.hxx b/framework/source/uiconfiguration/imagemanagerimpl.hxx
index 746b0b68d323..ef3b725c80f6 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.hxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.hxx
@@ -152,13 +152,6 @@ namespace framework
sal_Bool,
OUStringHash > ImageNameMap;
- enum Layer
- {
- LAYER_DEFAULT,
- LAYER_USERDEFINED,
- LAYER_COUNT
- };
-
enum NotifyOp
{
NotifyOp_Remove,