summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-08-06 11:36:30 +0200
committerJan Holesovsky <kendy@collabora.com>2014-08-06 11:47:53 +0200
commit8ec7e5250c204422b5efdf277de0722adb042728 (patch)
tree4e009fdc6a1476c7bb53a9037199290650c805ea
parent9ff65cb532fb066c7f3ffc4176290eefc3ac8cdf (diff)
writerfilter: getDefineName() is unused, kill it.
Change-Id: I7d733a509f8256d0c2bfbb4bbd91ed6924452051
-rw-r--r--writerfilter/source/ooxml/OOXMLFactory.cxx7
-rw-r--r--writerfilter/source/ooxml/OOXMLFactory.hxx3
-rw-r--r--writerfilter/source/ooxml/factory_ns.py3
-rw-r--r--writerfilter/source/ooxml/factoryimpl_ns.py26
4 files changed, 0 insertions, 39 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFactory.cxx b/writerfilter/source/ooxml/OOXMLFactory.cxx
index d066d25f727a..75bee9750914 100644
--- a/writerfilter/source/ooxml/OOXMLFactory.cxx
+++ b/writerfilter/source/ooxml/OOXMLFactory.cxx
@@ -72,13 +72,6 @@ CreateElementMapPointer OOXMLFactory_ns::getCreateElementMap(Id nId)
return m_CreateElementsMap[nId];
}
-#ifdef DEBUG_DOMAINMAPPER
-std::string OOXMLFactory_ns::getDefineName(Id /*nId*/) const
-{
- return "";
-}
-#endif
-
// class OOXMLFactory
typedef rtl::Static< osl::Mutex, OOXMLFactory > OOXMLFactory_Mutex;
diff --git a/writerfilter/source/ooxml/OOXMLFactory.hxx b/writerfilter/source/ooxml/OOXMLFactory.hxx
index c72c52b58def..f171b701d17a 100644
--- a/writerfilter/source/ooxml/OOXMLFactory.hxx
+++ b/writerfilter/source/ooxml/OOXMLFactory.hxx
@@ -93,9 +93,6 @@ public:
virtual void charactersAction(OOXMLFastContextHandler * pHandler, const OUString & rString);
virtual void endAction(OOXMLFastContextHandler * pHandler);
virtual void attributeAction(OOXMLFastContextHandler * pHandler, Token_t nToken, OOXMLValue::Pointer_t pValue);
-#ifdef DEBUG_DOMAINMAPPER
- virtual std::string getDefineName(Id nId) const;
-#endif
AttributeToResourceMapPointer getAttributeToResourceMap(Id nId);
CreateElementMapPointer getCreateElementMap(Id nId);
diff --git a/writerfilter/source/ooxml/factory_ns.py b/writerfilter/source/ooxml/factory_ns.py
index e13c6af3326e..2ab88890253a 100644
--- a/writerfilter/source/ooxml/factory_ns.py
+++ b/writerfilter/source/ooxml/factory_ns.py
@@ -39,9 +39,6 @@ public:
virtual CreateElementMapPointer createCreateElementMap(Id nId);
virtual bool getListValue(Id nId, const OUString& rValue, sal_uInt32& rOutValue);
virtual Id getResourceId(Id nDefine, sal_Int32 nToken);
-#ifdef DEBUG_DOMAINMAPPER
- virtual string getDefineName(Id nId) const;
-#endif
""" % nsToken)
actions = []
diff --git a/writerfilter/source/ooxml/factoryimpl_ns.py b/writerfilter/source/ooxml/factoryimpl_ns.py
index 7b6eeace61dc..73282d8fb669 100644
--- a/writerfilter/source/ooxml/factoryimpl_ns.py
+++ b/writerfilter/source/ooxml/factoryimpl_ns.py
@@ -507,31 +507,6 @@ def factoryActions(nsNode):
print()
-# factoryGetDefineName
-
-
-def factoryGetDefineName(nsNode):
- print("""#ifdef DEBUG_DOMAINMAPPER
-string OOXMLFactory_%s::getDefineName(Id nId) const
-{
- static IdToStringMapPointer pMap;
-
- if (pMap.get() == NULL)
- {
- pMap = IdToStringMapPointer(new IdToStringMap());
-
-""" % nsToLabel(nsNode))
- for defineNode in getChildrenByName(getChildByName(nsNode, "grammar"), "define"):
- print(""" (*pMap)[%s] = "%s";""" % (idForDefine(nsNode, defineNode), defineNode.getAttribute("name")))
- print(""" }
-
- return (*pMap)[nId];
-}
-#endif
-
-""")
-
-
# factoryGetResourceId
@@ -704,7 +679,6 @@ namespace ooxml {
factoryGetListValue(nsNode)
factoryCreateElementMap(files, nsNode)
factoryActions(nsNode)
- factoryGetDefineName(nsNode)
factoryGetResourceId(nsNode)
factoryAttributeAction(nsNode)