summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-22 08:57:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-23 20:31:22 +0100
commit49b1107b6ea81c32628a52202ffbbcd44b042e38 (patch)
treea2267ae3fe189cc6cd88d2e0c972842e97ea3d7a
parentc110bfc810ed381409d0f3742d8ce58a690d840f (diff)
remove unused enums in reportdesign,linguistic,l10ntools,vcl,svx
Change-Id: I3ae854f9fed485be915ded5bc4d7e93f5db23dc6 Reviewed-on: https://gerrit.libreoffice.org/63891 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--compilerplugins/clang/unusedenumconstants.untouched.results60
-rw-r--r--include/svx/nbdtmg.hxx5
-rw-r--r--include/svx/xenum.hxx1
-rw-r--r--include/vcl/pdfwriter.hxx7
-rw-r--r--include/vcl/vclenum.hxx6
-rw-r--r--l10ntools/inc/export.hxx11
-rw-r--r--linguistic/source/defs.hxx2
-rw-r--r--reportdesign/source/ui/inc/ReportDefines.hxx2
8 files changed, 1 insertions, 93 deletions
diff --git a/compilerplugins/clang/unusedenumconstants.untouched.results b/compilerplugins/clang/unusedenumconstants.untouched.results
index e038f28ec873..76fb5a7d19e2 100644
--- a/compilerplugins/clang/unusedenumconstants.untouched.results
+++ b/compilerplugins/clang/unusedenumconstants.untouched.results
@@ -178,14 +178,6 @@ include/oox/ole/axfontdata.hxx:40
enum AxFontFlags AutoColor
include/oox/ppt/animationspersist.hxx:43
enum oox::ppt::(anonymous at /home/noel/libo2/include/oox/ppt/animationspersist.hxx:36:5) NP_ENDSYNC
-include/svx/nbdtmg.hxx:40
- enum svx::sidebar::NBType Bullets
-include/svx/nbdtmg.hxx:40
- enum svx::sidebar::NBType GraphicBullets
-include/svx/xenum.hxx:27
- enum XBitmapType Import
-include/svx/xenum.hxx:27
- enum XBitmapType N8x8
include/unotools/eventcfg.hxx:29
enum GlobalEventId STARTAPP
include/unotools/eventcfg.hxx:30
@@ -222,64 +214,12 @@ include/vcl/keycod.hxx:33
enum KeyFuncType PROPERTIES
include/vcl/keycod.hxx:33
enum KeyFuncType FINDBACKWARD
-include/vcl/pdfwriter.hxx:201
- enum vcl::PDFWriter::WidgetState Up
-include/vcl/pdfwriter.hxx:201
- enum vcl::PDFWriter::WidgetState Down
include/vcl/syswin.hxx:54
enum WindowStateState FullScreen
-include/vcl/vclenum.hxx:191
- enum FontAutoHint DontKnow
-include/vcl/vclenum.hxx:191
- enum FontAutoHint Yes
-include/vcl/vclenum.hxx:191
- enum FontAutoHint No
-include/vcl/vclenum.hxx:193
- enum FontHinting DontKnow
-include/vcl/vclenum.hxx:193
- enum FontHinting No
-include/vcl/vclenum.hxx:193
- enum FontHinting Yes
-include/vcl/vclenum.hxx:195
- enum FontHintStyle Slight
-include/vcl/vclenum.hxx:195
- enum FontHintStyle Medium
-include/vcl/vclenum.hxx:195
- enum FontHintStyle Full
-l10ntools/inc/export.hxx:63
- enum IdLevel Identifier
-l10ntools/inc/export.hxx:63
- enum IdLevel Null
-l10ntools/inc/export.hxx:63
- enum IdLevel Text
-l10ntools/inc/export.hxx:85
- enum ExportListType Filter
-l10ntools/inc/export.hxx:85
- enum ExportListType String
-l10ntools/inc/export.hxx:85
- enum ExportListType Item
-l10ntools/inc/export.hxx:85
- enum ExportListType Paired
-l10ntools/inc/export.hxx:89
- enum StringType QuickHelpText
-l10ntools/inc/export.hxx:89
- enum StringType Text
-l10ntools/inc/export.hxx:89
- enum StringType Title
libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx:61
enum (anonymous at /home/noel/libo2/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx:59:1) PROP_0
libreofficekit/source/gtk/lokdocview.cxx:287
enum (anonymous at /home/noel/libo2/libreofficekit/source/gtk/lokdocview.cxx:285:1) PROP_0
-linguistic/source/defs.hxx:85
- enum LinguDispatcher::DspType DSP_GRAMMAR
-linguistic/source/defs.hxx:85
- enum LinguDispatcher::DspType DSP_THES
-linguistic/source/defs.hxx:85
- enum LinguDispatcher::DspType DSP_HYPH
-linguistic/source/defs.hxx:85
- enum LinguDispatcher::DspType DSP_SPELL
-reportdesign/source/ui/inc/ReportDefines.hxx:24
- enum rptui::DlgEdMode Test
sc/source/filter/excel/xiescher.cxx:460
enum (anonymous at /home/noel/libo2/sc/source/filter/excel/xiescher.cxx:460:17) eCreateFromOffice
sc/source/filter/inc/decl.h:24
diff --git a/include/svx/nbdtmg.hxx b/include/svx/nbdtmg.hxx
index 9379d1da9282..f6d085902db5 100644
--- a/include/svx/nbdtmg.hxx
+++ b/include/svx/nbdtmg.hxx
@@ -35,11 +35,6 @@ enum class NBOType
Bullets = 1, Numbering, Outline
};
-enum class NBType
-{
- Bullets = 1, GraphicBullets
-};
-
class SVX_DLLPUBLIC NumSettings_Impl
{
public:
diff --git a/include/svx/xenum.hxx b/include/svx/xenum.hxx
index c17551586f28..f3620bdfa194 100644
--- a/include/svx/xenum.hxx
+++ b/include/svx/xenum.hxx
@@ -24,7 +24,6 @@
enum class XFormTextStyle { Rotate, Upright, SlantX, SlantY, NONE };
enum class XFormTextAdjust { Left, Right, AutoSize, Center };
enum class XFormTextShadow { NONE, Normal, Slant };
-enum class XBitmapType { Import, N8x8 };
#endif // INCLUDED_SVX_XENUM_HXX
diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx
index 751f698892f1..3029202f959a 100644
--- a/include/vcl/pdfwriter.hxx
+++ b/include/vcl/pdfwriter.hxx
@@ -194,13 +194,6 @@ public:
Signature
};
- enum WidgetState
- {
- // PushButton, RadioButton, CheckBox; Down means selected for
- // RadioButton and CheckBox
- Up, Down
- };
-
enum ErrorCode
{
// transparent object occurred and was draw opaque because
diff --git a/include/vcl/vclenum.hxx b/include/vcl/vclenum.hxx
index 03e2c4661aff..4ada41058a22 100644
--- a/include/vcl/vclenum.hxx
+++ b/include/vcl/vclenum.hxx
@@ -188,12 +188,6 @@ enum class LineStyle
enum class RasterOp { OverPaint, Xor, N0, N1, Invert };
-enum class FontAutoHint { DontKnow, No, Yes };
-
-enum class FontHinting { DontKnow, No, Yes };
-
-enum class FontHintStyle { NONE, Slight, Medium, Full };
-
typedef sal_uInt32 sal_UCS4; // TODO: this should be moved to rtl
enum class OutDevSupportType { TransparentRect, B2DDraw };
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index c2d43b75a60c..ed23eaf472c6 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -60,8 +60,6 @@ typedef std::unordered_map<OString, bool>
// class ResData
-enum class IdLevel { Null=0, Text=2, Identifier=5 };
-
/// Purpose: holds mandatory data to export a single res
class ResData
{
@@ -81,15 +79,6 @@ public:
// class Export
-enum class ExportListType {
- NONE, String, Filter, Item, Paired
-};
-
-enum class StringType {
- Text, QuickHelpText, Title
-};
-
-
class ParserQueue;
// class MergeEntrys
diff --git a/linguistic/source/defs.hxx b/linguistic/source/defs.hxx
index c39740e01d65..38909e82362c 100644
--- a/linguistic/source/defs.hxx
+++ b/linguistic/source/defs.hxx
@@ -82,8 +82,6 @@ struct LangSvcEntries_Thes : public LangSvcEntries
class LinguDispatcher
{
public:
- enum DspType { DSP_SPELL, DSP_HYPH, DSP_THES, DSP_GRAMMAR };
-
virtual void SetServiceList( const css::lang::Locale &rLocale, const css::uno::Sequence< OUString > &rSvcImplNames ) = 0;
virtual css::uno::Sequence< OUString > GetServiceList( const css::lang::Locale &rLocale ) const = 0;
diff --git a/reportdesign/source/ui/inc/ReportDefines.hxx b/reportdesign/source/ui/inc/ReportDefines.hxx
index 1b8438f12729..c56e208419f8 100644
--- a/reportdesign/source/ui/inc/ReportDefines.hxx
+++ b/reportdesign/source/ui/inc/ReportDefines.hxx
@@ -21,7 +21,7 @@
namespace rptui
{
- enum class DlgEdMode { Insert, Select, Test };
+ enum class DlgEdMode { Insert, Select };
#define REPORT_STARTMARKER_WIDTH 120
#define REPORT_ENDMARKER_WIDTH 10