[Libreoffice-commits] core.git: compilerplugins/clang include/svx include/vcl l10ntools/inc linguistic/source reportdesign/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Nov 23 19:31:53 UTC 2018


 compilerplugins/clang/unusedenumconstants.untouched.results |   60 ------------
 include/svx/nbdtmg.hxx                                      |    5 -
 include/svx/xenum.hxx                                       |    1 
 include/vcl/pdfwriter.hxx                                   |    7 -
 include/vcl/vclenum.hxx                                     |    6 -
 l10ntools/inc/export.hxx                                    |   11 --
 linguistic/source/defs.hxx                                  |    2 
 reportdesign/source/ui/inc/ReportDefines.hxx                |    2 
 8 files changed, 1 insertion(+), 93 deletions(-)

New commits:
commit 49b1107b6ea81c32628a52202ffbbcd44b042e38
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Nov 22 08:57:37 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Nov 23 20:31:22 2018 +0100

    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 at collabora.co.uk>

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


More information about the Libreoffice-commits mailing list