[Libreoffice-commits] core.git: sw/source

Noel (via logerrit) logerrit at kemper.freedesktop.org
Tue Dec 8 09:20:56 UTC 2020


 sw/source/filter/xml/xmltbli.cxx |   44 ---------------------------------------
 1 file changed, 44 deletions(-)

New commits:
commit 888e15f3c2a5f16c129d08c3580da521ae682535
Author:     Noel <noelgrandin at gmail.com>
AuthorDate: Tue Dec 8 09:57:23 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Dec 8 10:20:13 2020 +0100

    remove unused SvXMLTokenMaps
    
    Change-Id: I84a0a47e631e6bf7cfd1c745be6ed5839885861f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107370
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index dd0b9c895a56..33067c9e4c8e 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -110,50 +110,6 @@ enum SwXMLTableCellAttrTokens
 
 }
 
-const SvXMLTokenMapEntry aTableElemTokenMap[] =
-{
-    { XML_NAMESPACE_TABLE, XML_TABLE_HEADER_COLUMNS,
-            XML_TOK_TABLE_HEADER_COLS },
-    { XML_NAMESPACE_TABLE, XML_TABLE_COLUMNS,           XML_TOK_TABLE_COLS },
-    { XML_NAMESPACE_TABLE, XML_TABLE_COLUMN,            XML_TOK_TABLE_COL },
-    { XML_NAMESPACE_LO_EXT, XML_TABLE_COLUMN,           XML_TOK_TABLE_COL },
-    { XML_NAMESPACE_TABLE, XML_TABLE_HEADER_ROWS,
-            XML_TOK_TABLE_HEADER_ROWS },
-    { XML_NAMESPACE_TABLE, XML_TABLE_ROWS,              XML_TOK_TABLE_ROWS },
-    { XML_NAMESPACE_TABLE, XML_TABLE_ROW,               XML_TOK_TABLE_ROW },
-    { XML_NAMESPACE_LO_EXT, XML_TABLE_ROW,              XML_TOK_TABLE_ROW },
-    { XML_NAMESPACE_OFFICE, XML_DDE_SOURCE,
-            XML_TOK_OFFICE_DDE_SOURCE },
-
-    // There are slight differences between <table:table-columns> and
-    // <table:table-columns-groups>. However, none of these are
-    // supported in Writer (they are Calc-only features), so we
-    // support column groups by simply using the <table:table-columns>
-    // token for column groups, too.
-    { XML_NAMESPACE_TABLE, XML_TABLE_COLUMN_GROUP,      XML_TOK_TABLE_COLS },
-
-    XML_TOKEN_MAP_END
-};
-
-const SvXMLTokenMapEntry aTableCellAttrTokenMap[] =
-{
-    { XML_NAMESPACE_XML, XML_ID, XML_TOK_TABLE_XMLID },
-    { XML_NAMESPACE_TABLE, XML_STYLE_NAME, XML_TOK_TABLE_STYLE_NAME },
-    { XML_NAMESPACE_TABLE, XML_NUMBER_COLUMNS_SPANNED, XML_TOK_TABLE_NUM_COLS_SPANNED },
-    { XML_NAMESPACE_TABLE, XML_NUMBER_ROWS_SPANNED, XML_TOK_TABLE_NUM_ROWS_SPANNED },
-    { XML_NAMESPACE_TABLE, XML_NUMBER_COLUMNS_REPEATED, XML_TOK_TABLE_NUM_COLS_REPEATED },
-    { XML_NAMESPACE_TABLE, XML_FORMULA, XML_TOK_TABLE_FORMULA },
-    { XML_NAMESPACE_OFFICE, XML_VALUE, XML_TOK_TABLE_VALUE },
-    { XML_NAMESPACE_OFFICE, XML_TIME_VALUE, XML_TOK_TABLE_TIME_VALUE },
-    { XML_NAMESPACE_OFFICE, XML_DATE_VALUE, XML_TOK_TABLE_DATE_VALUE },
-    { XML_NAMESPACE_OFFICE, XML_BOOLEAN_VALUE, XML_TOK_TABLE_BOOLEAN_VALUE },
-    { XML_NAMESPACE_TABLE, XML_PROTECTED, XML_TOK_TABLE_PROTECTED },
-    { XML_NAMESPACE_TABLE, XML_PROTECT, XML_TOK_TABLE_PROTECTED }, // for backwards compatibility with SRC629 (and before)
-    { XML_NAMESPACE_OFFICE, XML_STRING_VALUE, XML_TOK_TABLE_STRING_VALUE },
-    { XML_NAMESPACE_OFFICE, XML_VALUE_TYPE, XML_TOK_TABLE_VALUE_TYPE },
-    XML_TOKEN_MAP_END
-};
-
 class SwXMLTableCell_Impl
 {
     OUString aStyleName;


More information about the Libreoffice-commits mailing list