summaryrefslogtreecommitdiff
path: root/xmloff
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 /xmloff
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 'xmloff')
-rw-r--r--xmloff/inc/txtfldi.hxx2
-rw-r--r--xmloff/source/chart/XMLSymbolImageContext.cxx1
-rw-r--r--xmloff/source/draw/sdxmlimp_impl.hxx1
-rw-r--r--xmloff/source/style/DashStyle.cxx1
-rw-r--r--xmloff/source/style/XMLFontStylesContext.cxx2
-rw-r--r--xmloff/source/style/xmlnumi.cxx12
-rw-r--r--xmloff/source/style/xmltabi.cxx3
-rw-r--r--xmloff/source/text/XMLTextColumnsContext.cxx6
-rw-r--r--xmloff/source/text/txtdropi.cxx3
-rw-r--r--xmloff/source/transform/ElemTransformerAction.hxx3
-rw-r--r--xmloff/source/transform/PropertyActionsOASIS.hxx3
-rw-r--r--xmloff/source/transform/PropertyActionsOOo.hxx3
12 files changed, 11 insertions, 29 deletions
diff --git a/xmloff/inc/txtfldi.hxx b/xmloff/inc/txtfldi.hxx
index 61eb03c7f765..a93d85a4ae2e 100644
--- a/xmloff/inc/txtfldi.hxx
+++ b/xmloff/inc/txtfldi.hxx
@@ -104,8 +104,6 @@ enum XMLTextFieldAttrTokens
XML_TOK_TEXTFIELD_TABLE_TYPE,
XML_TOK_TEXTFIELD_NOTE_CLASS,
-
- XML_TOK_TEXTFIELD_UNKNOWN
};
/// abstract class for text field import
diff --git a/xmloff/source/chart/XMLSymbolImageContext.cxx b/xmloff/source/chart/XMLSymbolImageContext.cxx
index f4c0b1b9308d..c3ee0e29c763 100644
--- a/xmloff/source/chart/XMLSymbolImageContext.cxx
+++ b/xmloff/source/chart/XMLSymbolImageContext.cxx
@@ -35,7 +35,6 @@ enum SvXMLTokenMapAttrs
XML_TOK_SYMBOL_IMAGE_TYPE,
XML_TOK_SYMBOL_IMAGE_ACTUATE,
XML_TOK_SYMBOL_IMAGE_SHOW,
- XML_TOK_SYMBOL_IMAGE_END = XML_TOK_UNKNOWN
};
static const SvXMLTokenMapEntry aSymbolImageAttrTokenMap[] =
diff --git a/xmloff/source/draw/sdxmlimp_impl.hxx b/xmloff/source/draw/sdxmlimp_impl.hxx
index f102b96d06f5..844d1a800fec 100644
--- a/xmloff/source/draw/sdxmlimp_impl.hxx
+++ b/xmloff/source/draw/sdxmlimp_impl.hxx
@@ -41,7 +41,6 @@ enum SdXMLDocElemTokenMap
XML_TOK_DOC_BODY,
XML_TOK_DOC_SCRIPT,
XML_TOK_DOC_SETTINGS,
- XML_TOK_OFFICE_END = XML_TOK_UNKNOWN
};
enum SdXMLBodyElemTokenMap
diff --git a/xmloff/source/style/DashStyle.cxx b/xmloff/source/style/DashStyle.cxx
index d1aafde9c377..24b0e0e09d7a 100644
--- a/xmloff/source/style/DashStyle.cxx
+++ b/xmloff/source/style/DashStyle.cxx
@@ -49,7 +49,6 @@ enum SvXMLTokenMapAttrs
XML_TOK_DASH_DOTS2,
XML_TOK_DASH_DOTS2LEN,
XML_TOK_DASH_DISTANCE,
- XML_TOK_DASH_END=XML_TOK_UNKNOWN
};
static SvXMLTokenMapEntry aDashStyleAttrTokenMap[] =
diff --git a/xmloff/source/style/XMLFontStylesContext.cxx b/xmloff/source/style/XMLFontStylesContext.cxx
index 8303ee99f1d7..f63d70769668 100644
--- a/xmloff/source/style/XMLFontStylesContext.cxx
+++ b/xmloff/source/style/XMLFontStylesContext.cxx
@@ -57,8 +57,6 @@ enum XMLFontStyleAttrTokens
XML_TOK_FONT_STYLE_ATTR_STYLENAME,
XML_TOK_FONT_STYLE_ATTR_PITCH,
XML_TOK_FONT_STYLE_ATTR_CHARSET,
-
- XML_TOK_FONT_STYLE_ATTR_END=XML_TOK_UNKNOWN
};
static const SvXMLTokenMapEntry* lcl_getFontStyleAttrTokenMap()
diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx
index cb130d8e00b1..ba9aef6e6583 100644
--- a/xmloff/source/style/xmlnumi.cxx
+++ b/xmloff/source/style/xmlnumi.cxx
@@ -112,9 +112,7 @@ enum SvxXMLTextListLevelStyleAttrTokens
XML_TOK_TEXT_LEVEL_ATTR_NUM_SUFFIX,
XML_TOK_TEXT_LEVEL_ATTR_NUM_LETTER_SYNC,
XML_TOK_TEXT_LEVEL_ATTR_START_VALUE,
- XML_TOK_TEXT_LEVEL_ATTR_DISPLAY_LEVELS,
-
- XML_TOK_TEXT_LEVEL_ATTR_END=XML_TOK_UNKNOWN
+ XML_TOK_TEXT_LEVEL_ATTR_DISPLAY_LEVELS
};
static const SvXMLTokenMapEntry* lcl_getLevelAttrTokenMap()
@@ -601,9 +599,9 @@ enum SvxXMLStyleAttributesAttrTokens
XML_TOK_STYLE_ATTRIBUTES_ATTR_COLOR,
XML_TOK_STYLE_ATTRIBUTES_ATTR_WINDOW_FONT_COLOR,
XML_TOK_STYLE_ATTRIBUTES_ATTR_FONT_SIZE,
- XML_TOK_STYLE_ATTRIBUTES_ATTR_POSITION_AND_SPACE_MODE,
- XML_TOK_STYLE_ATTRIBUTES_ATTR_END=XML_TOK_UNKNOWN
+ XML_TOK_STYLE_ATTRIBUTES_ATTR_POSITION_AND_SPACE_MODE
};
+
static const SvXMLTokenMapEntry* lcl_getStyleAttributesAttrTokenMap()
{
static const SvXMLTokenMapEntry aStyleAttributesAttrTokenMap[] =
@@ -917,9 +915,7 @@ enum SvxXMLStyleAttributesLabelAlignmentAttrTokens
XML_TOK_STYLE_ATTRIBUTES_ATTR_LABEL_FOLLOWED_BY,
XML_TOK_STYLE_ATTRIBUTES_ATTR_LISTTAB_STOP_POSITION,
XML_TOK_STYLE_ATTRIBUTES_ATTR_FIRST_LINE_INDENT,
- XML_TOK_STYLE_ATTRIBUTES_ATTR_INDENT_AT,
-
- XML_TOK_STYLE_ATTRIBUTES_LABEL_ALIGNMENT_ATTR_END=XML_TOK_UNKNOWN
+ XML_TOK_STYLE_ATTRIBUTES_ATTR_INDENT_AT
};
static const SvXMLTokenMapEntry* lcl_getStyleAlignmentAttributesAttrTokenMap()
{
diff --git a/xmloff/source/style/xmltabi.cxx b/xmloff/source/style/xmltabi.cxx
index bb0b1b41fa56..0e4c1ca665b5 100644
--- a/xmloff/source/style/xmltabi.cxx
+++ b/xmloff/source/style/xmltabi.cxx
@@ -40,8 +40,7 @@ enum SvXMLTokenMapAttrs
XML_TOK_TABSTOP_TYPE,
XML_TOK_TABSTOP_CHAR,
XML_TOK_TABSTOP_LEADER_STYLE,
- XML_TOK_TABSTOP_LEADER_TEXT,
- XML_TOK_TABSTOP_END=XML_TOK_UNKNOWN
+ XML_TOK_TABSTOP_LEADER_TEXT
};
static SvXMLTokenMapEntry aTabsAttributesAttrTokenMap[] =
diff --git a/xmloff/source/text/XMLTextColumnsContext.cxx b/xmloff/source/text/XMLTextColumnsContext.cxx
index d55a9a3467e3..6efd165787df 100644
--- a/xmloff/source/text/XMLTextColumnsContext.cxx
+++ b/xmloff/source/text/XMLTextColumnsContext.cxx
@@ -44,8 +44,7 @@ enum SvXMLTokenMapAttrs
{
XML_TOK_COLUMN_WIDTH,
XML_TOK_COLUMN_MARGIN_LEFT,
- XML_TOK_COLUMN_MARGIN_RIGHT,
- XML_TOK_COLUMN_END=XML_TOK_UNKNOWN
+ XML_TOK_COLUMN_MARGIN_RIGHT
};
enum SvXMLSepTokenMapAttrs
@@ -54,8 +53,7 @@ enum SvXMLSepTokenMapAttrs
XML_TOK_COLUMN_SEP_HEIGHT,
XML_TOK_COLUMN_SEP_COLOR,
XML_TOK_COLUMN_SEP_ALIGN,
- XML_TOK_COLUMN_SEP_STYLE,
- XML_TOK_COLUMN_SEP_END=XML_TOK_UNKNOWN
+ XML_TOK_COLUMN_SEP_STYLE
};
static const SvXMLTokenMapEntry aColAttrTokenMap[] =
diff --git a/xmloff/source/text/txtdropi.cxx b/xmloff/source/text/txtdropi.cxx
index ef6e2c86a0dd..9101918e4519 100644
--- a/xmloff/source/text/txtdropi.cxx
+++ b/xmloff/source/text/txtdropi.cxx
@@ -43,8 +43,7 @@ enum SvXMLTokenMapDropAttrs
XML_TOK_DROP_LINES,
XML_TOK_DROP_LENGTH,
XML_TOK_DROP_DISTANCE,
- XML_TOK_DROP_STYLE,
- XML_TOK_DROP_END=XML_TOK_UNKNOWN
+ XML_TOK_DROP_STYLE
};
static const SvXMLTokenMapEntry aDropAttrTokenMap[] =
diff --git a/xmloff/source/transform/ElemTransformerAction.hxx b/xmloff/source/transform/ElemTransformerAction.hxx
index 68deafde51cf..243017721de3 100644
--- a/xmloff/source/transform/ElemTransformerAction.hxx
+++ b/xmloff/source/transform/ElemTransformerAction.hxx
@@ -87,8 +87,7 @@ enum XMLElemTransformerAction
XML_ETACTION_MOVE_TO_ATTR_RNG2ISO_DATETIME, // turn elem into an attr and convert . to , in datetimes
// - param1: namespace +
// token of local name
- XML_ETACTION_USER_DEFINED=0x40000000,// user defined actions start here
- XML_ETACTION_END=XML_TACTION_END
+ XML_ETACTION_USER_DEFINED=0x40000000// user defined actions start here
};
#endif // INCLUDED_XMLOFF_SOURCE_TRANSFORM_ELEMTRANSFORMERACTION_HXX
diff --git a/xmloff/source/transform/PropertyActionsOASIS.hxx b/xmloff/source/transform/PropertyActionsOASIS.hxx
index dcf51cb02772..5d4864cd6d82 100644
--- a/xmloff/source/transform/PropertyActionsOASIS.hxx
+++ b/xmloff/source/transform/PropertyActionsOASIS.hxx
@@ -46,8 +46,7 @@ enum XMLPropOASISTransformerAction
XML_OPTACTION_CONTROL_TEXT_ALIGN,
XML_OPTACTION_DRAW_WRITING_MODE,
XML_ATACTION_CAPTION_ESCAPE_OASIS,
- XML_ATACTION_DECODE_PROTECT,
- XML_OPTACTION_END=XML_ATACTION_END
+ XML_ATACTION_DECODE_PROTECT
};
extern XMLTransformerActionInit aGraphicPropertyOASISAttrActionTable[];
diff --git a/xmloff/source/transform/PropertyActionsOOo.hxx b/xmloff/source/transform/PropertyActionsOOo.hxx
index 01c928936910..5a08eba72002 100644
--- a/xmloff/source/transform/PropertyActionsOOo.hxx
+++ b/xmloff/source/transform/PropertyActionsOOo.hxx
@@ -44,8 +44,7 @@ enum XMLPropOOOTransformerAction
XML_ATACTION_SIZE_PROTECT,
XML_ATACTION_PROTECT,
// No image transparency info in label document (#i50322#)
- XML_ATACTION_WRITER_BACK_GRAPHIC_TRANSPARENCY,
- XML_PTACTION_END=XML_TACTION_END
+ XML_ATACTION_WRITER_BACK_GRAPHIC_TRANSPARENCY
};
extern XMLTransformerActionInit aGraphicPropertyOOoAttrActionTable[];