Kaydet (Commit) 8ec7e525 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

writerfilter: getDefineName() is unused, kill it.

Change-Id: I7d733a509f8256d0c2bfbb4bbd91ed6924452051
üst 9ff65cb5
......@@ -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;
......
......@@ -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);
......
......@@ -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 = []
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment