sc/inc/chgtrack.hxx                       |    1 -
 sc/inc/global.hxx                         |    1 -
 sc/inc/tabprotection.hxx                  |    2 --
 sc/inc/types.hxx                          |    6 ------
 sc/source/core/data/fillinfo.cxx          |    8 --------
 sc/source/core/inc/refupdat.hxx           |    7 -------
 sc/source/filter/excel/xepivot.cxx        |   15 ++++-----------
 sc/source/filter/inc/formulabase.hxx      |   11 -----------
 sc/source/filter/inc/tokstack.hxx         |    3 +--
 sc/source/filter/inc/xltracer.hxx         |   13 -------------
 sc/source/filter/oox/revisionfragment.cxx |    5 +----
 sc/source/filter/xml/xmlimprt.hxx         |   17 -----------------
 sc/source/ui/inc/condformathelper.hxx     |    3 +--
 sc/source/ui/inc/selectionstate.hxx       |    2 --
 14 files changed, 7 insertions(+), 87 deletions(-)

New commits:
commit 5b1095fc03e90506cb8ed956fafb528d4f6b0044
Author: Noel Grandin <n...@peralex.com>
Date:   Fri Aug 12 12:41:43 2016 +0200

    loplugin:unusedenumvalues in sc
    
    Change-Id: If16f62c3a44a603aff7399f2064777069d5d85fa
    Reviewed-on: https://gerrit.libreoffice.org/28074
    Reviewed-by: Noel Grandin <noelgran...@gmail.com>
    Tested-by: Noel Grandin <noelgran...@gmail.com>

diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx
index e7f6e53..94aa56d 100644
--- a/sc/inc/chgtrack.hxx
+++ b/sc/inc/chgtrack.hxx
@@ -82,7 +82,6 @@ enum ScChangeActionClipMode
 {
     SC_CACM_NONE,
     SC_CACM_CUT,
-    SC_CACM_COPY,
     SC_CACM_PASTE
 };
 
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index 396865b..27ea1f8 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -151,7 +151,6 @@ enum class InsertDeleteFlags : sal_uInt16
     ATTRIB           = HARDATTR | STYLES,
     CONTENTS         = VALUE | DATETIME | STRING | NOTE | FORMULA | OUTLINE,
     ALL              = CONTENTS | ATTRIB | OBJECTS,
-    ALL_USED_BITS    = ALL | EDITATTR | NOCAPTIONS | ADDNOTES | 
SPECIAL_BOOLEAN | FORGETCAPTIONS,
     /// Copy flags for auto/series fill functions: do not touch notes and 
drawing objects.
     AUTOFILL         = ALL & ~(NOTE | OBJECTS)
 };
diff --git a/sc/inc/tabprotection.hxx b/sc/inc/tabprotection.hxx
index 066f8c4..31ea28b 100644
--- a/sc/inc/tabprotection.hxx
+++ b/sc/inc/tabprotection.hxx
@@ -77,7 +77,6 @@ public:
     {
         STRUCTURE = 0,
         WINDOWS,
-        CONTENT,
         NONE        ///< last item - used to resize the vector
     };
 
@@ -162,7 +161,6 @@ public:
         SCENARIOS,
         SELECT_LOCKED_CELLS,
         SELECT_UNLOCKED_CELLS,
-        SHEET,
         SORT,
         NONE        ///< last item - used to resize the vector
     };
diff --git a/sc/inc/types.hxx b/sc/inc/types.hxx
index 5fc451b..15ebf75 100644
--- a/sc/inc/types.hxx
+++ b/sc/inc/types.hxx
@@ -78,12 +78,6 @@ enum GroupCalcState
     GroupCalcRunning,
 };
 
-enum OpenCLKernelState
-{
-    OpenCLKernelNone = 0,
-    OpenCLKernelBinaryCreated
-};
-
 struct RangeMatrix
 {
     ScMatrixRef mpMat;
diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx
index 6f71550..d74ea57 100644
--- a/sc/source/core/data/fillinfo.cxx
+++ b/sc/source/core/data/fillinfo.cxx
@@ -46,14 +46,6 @@
 #include <memory>
 #include <o3tl/make_unique.hxx>
 
-enum FillInfoLinePos
-    {
-        FILP_TOP,
-        FILP_BOTTOM,
-        FILP_LEFT,
-        FILP_RIGHT
-    };
-
 // Similar as in output.cxx
 
 static void lcl_GetMergeRange( SCsCOL nX, SCsROW nY, SCSIZE nArrY,
diff --git a/sc/source/core/inc/refupdat.hxx b/sc/source/core/inc/refupdat.hxx
index bbfa15b..8bc1ab6 100644
--- a/sc/source/core/inc/refupdat.hxx
+++ b/sc/source/core/inc/refupdat.hxx
@@ -43,13 +43,6 @@ class ScRefUpdate
 {
 public:
 
-    /// What type of reference is to be updated.
-    enum WhatType
-    {
-        ALL,        /// all references
-        ABSOLUTE    /// only absolute references
-    };
-
     static ScRefUpdateRes Update
         ( ScDocument* pDoc, UpdateRefMode eUpdateRefMode,
                             SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
diff --git a/sc/source/filter/excel/xepivot.cxx 
b/sc/source/filter/excel/xepivot.cxx
index 897651f..de36642 100644
--- a/sc/source/filter/excel/xepivot.cxx
+++ b/sc/source/filter/excel/xepivot.cxx
@@ -1559,19 +1559,12 @@ void XclExpPivotTable::WriteQsiSxTag( XclExpStream& 
rStrm ) const
 #endif
     rStrm << nOptions;
 
-    enum ExcelVersion
-    {
-        Excel2000 = 0,
-        ExcelXP   = 1,
-        Excel2003 = 2,
-        Excel2007 = 3
-    };
-    ExcelVersion eXclVer = Excel2000;
+    sal_uInt8 eXclVer = 0; // Excel2000
     sal_uInt8 nOffsetBytes = 16;
-    rStrm << static_cast<sal_uInt8>(eXclVer)  // version table last refreshed
-          << static_cast<sal_uInt8>(eXclVer)  // minimum version to refresh
+    rStrm << eXclVer  // version table last refreshed
+          << eXclVer  // minimum version to refresh
           << nOffsetBytes
-          << static_cast<sal_uInt8>(eXclVer); // first version created
+          << eXclVer; // first version created
 
     rStrm << XclExpString(maPTInfo.maTableName);
     rStrm << static_cast<sal_uInt16>(0x0001); // no idea what this is for.
diff --git a/sc/source/filter/inc/formulabase.hxx 
b/sc/source/filter/inc/formulabase.hxx
index a5b1e7c..aae1f93 100644
--- a/sc/source/filter/inc/formulabase.hxx
+++ b/sc/source/filter/inc/formulabase.hxx
@@ -382,17 +382,6 @@ enum FuncParamValidity
     FUNC_PARAM_EXCELONLY        /// Parameter supported by Excel only.
 };
 
-/** Enumerates different types of token class conversion in function 
parameters. */
-enum FuncParamConversion
-{
-    FUNC_PARAMCONV_ORG,         /// Use original class of current token.
-    FUNC_PARAMCONV_VAL,         /// Convert tokens to VAL class.
-    FUNC_PARAMCONV_ARR,         /// Convert tokens to ARR class.
-    FUNC_PARAMCONV_RPT,         /// Repeat parent conversion in VALTYPE 
parameters.
-    FUNC_PARAMCONV_RPX,         /// Repeat parent conversion in REFTYPE 
parameters.
-    FUNC_PARAMCONV_RPO          /// Repeat parent conversion in operands of 
operators.
-};
-
 /** Structure that contains all needed information for a parameter in a
     function.
 
diff --git a/sc/source/filter/inc/tokstack.hxx 
b/sc/source/filter/inc/tokstack.hxx
index 71ef978..ffac269 100644
--- a/sc/source/filter/inc/tokstack.hxx
+++ b/sc/source/filter/inc/tokstack.hxx
@@ -66,8 +66,7 @@ enum E_TYPE
     T_Matrix,   // token for inline arrays
     T_ExtName,  // token for external names
     T_ExtRefC,
-    T_ExtRefA,
-    T_Error     // for check in case of error
+    T_ExtRefA
 };
 
 class TokenPool
diff --git a/sc/source/filter/inc/xltracer.hxx 
b/sc/source/filter/inc/xltracer.hxx
index 6b216df..f3f1b1e 100644
--- a/sc/source/filter/inc/xltracer.hxx
+++ b/sc/source/filter/inc/xltracer.hxx
@@ -30,30 +30,17 @@ enum XclTracerId
     eUnKnown  ,          /// unused but allows us to set the correct index
     eRowLimitExceeded ,
     eTabLimitExceeded ,
-    ePassword ,
     ePrintRange ,
     eShortDate ,
     eBorderLineStyle ,
     eFillPattern ,
-    eInvisibleGrid ,
-    eFormattedNote ,
-    eFormulaExtName ,
     eFormulaMissingArg ,
     ePivotDataSource ,
     ePivotChartExists ,
     eChartUnKnownType ,
-    eChartTrendLines ,
-    eChartErrorBars ,
     eChartOnlySheet ,
-    eChartRange ,
-    eChartDSName,
     eChartDataTable,
     eChartLegendPosition,
-    eChartTextFormatting,
-    eChartEmbeddedObj,
-    eChartAxisAuto,
-    eChartAxisManual,
-    eChartInvalidXY,
     eUnsupportedObject ,
     eObjectNotPrintable ,
     eDVType,
diff --git a/sc/source/filter/oox/revisionfragment.cxx 
b/sc/source/filter/oox/revisionfragment.cxx
index 704c7d5..928d71ec 100644
--- a/sc/source/filter/oox/revisionfragment.cxx
+++ b/sc/source/filter/oox/revisionfragment.cxx
@@ -44,10 +44,7 @@ enum RevisionType
 {
     REV_UNKNOWN = 0,
     REV_CELLCHANGE,
-    REV_INSERTROW,
-    REV_DELETEROW,
-    REV_INSERTCOL,
-    REV_DELETECOL
+    REV_INSERTROW
 };
 
 /**
diff --git a/sc/source/filter/xml/xmlimprt.hxx 
b/sc/source/filter/xml/xmlimprt.hxx
index 518a33d..5df632d 100644
--- a/sc/source/filter/xml/xmlimprt.hxx
+++ b/sc/source/filter/xml/xmlimprt.hxx
@@ -74,23 +74,6 @@ enum ScXMLDocTokens
     XML_TOK_OFFICE_END=XML_TOK_UNKNOWN
 };
 
-enum ScXMLStylesTokens
-{
-    XML_TOK_STYLES_STYLE
-};
-
-enum ScXMLStylesAttrTokens
-{
-    XML_TOK_STYLES_STYLE_NAME,
-    XML_TOK_STYLES_STYLE_FAMILY,
-    XML_TOK_STYLES_STYLE_PARENT_STYLE_NAME
-};
-
-enum ScXMLStyleTokens
-{
-    XML_TOK_STYLE_PROPERTIES
-};
-
 enum ScXMLBodyTokens
 {
     XML_TOK_BODY_TRACKED_CHANGES,
diff --git a/sc/source/ui/inc/condformathelper.hxx 
b/sc/source/ui/inc/condformathelper.hxx
index 405e11c..cac29a9 100644
--- a/sc/source/ui/inc/condformathelper.hxx
+++ b/sc/source/ui/inc/condformathelper.hxx
@@ -22,8 +22,7 @@ enum ScCondFormatEntryType
     DATABAR,
     FORMULA,
     ICONSET,
-    DATE,
-    COLLAPSE
+    DATE
 };
 
 class ScCondFormatHelper
diff --git a/sc/source/ui/inc/selectionstate.hxx 
b/sc/source/ui/inc/selectionstate.hxx
index 86a8d6f..8791751 100644
--- a/sc/source/ui/inc/selectionstate.hxx
+++ b/sc/source/ui/inc/selectionstate.hxx
@@ -29,8 +29,6 @@ enum ScSelectionType
     SC_SELECTTYPE_NONE,             /// No selection, simple cell cursor.
     SC_SELECTTYPE_SHEET,            /// Single cell, cell range, or multi 
range selection.
     SC_SELECTTYPE_EDITCELL,         /// Cell in edit mode (with or without 
selection).
-    SC_SELECTTYPE_DRAWING,          /// One or more drawing objects.
-    SC_SELECTTYPE_EDITDRAW          /// Edit mode in drawing object (with or 
without selection).
 };
 
 class ScViewData;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to