summaryrefslogtreecommitdiff
path: root/xmloff/source/script
diff options
context:
space:
mode:
authorBálint Dózsa <dozsabalint@gmail.com>2011-03-08 11:57:24 +0100
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-03-08 21:41:41 +0100
commitf7114f0245a00b10b0a30245729b4100179be08f (patch)
treec867906b8f2f1232b8cbf008879e44cc13b2eb42 /xmloff/source/script
parent5ea935885018b33f1f9e3a8e1f1cfd129d9bd6d2 (diff)
Remove commented out code
Diffstat (limited to 'xmloff/source/script')
-rw-r--r--xmloff/source/script/XMLEventsImportContext.cxx14
-rw-r--r--xmloff/source/script/XMLStarBasicContextFactory.cxx12
2 files changed, 0 insertions, 26 deletions
diff --git a/xmloff/source/script/XMLEventsImportContext.cxx b/xmloff/source/script/XMLEventsImportContext.cxx
index 8ef1cc9e6ce0..d24b2032eb2e 100644
--- a/xmloff/source/script/XMLEventsImportContext.cxx
+++ b/xmloff/source/script/XMLEventsImportContext.cxx
@@ -87,15 +87,6 @@ XMLEventsImportContext::~XMLEventsImportContext()
{
// // if, for whatever reason, the object gets destroyed prematurely,
// // we need to delete the collected events
-// EventsVector::iterator aEnd = aCollectEvents.end();
-// for(EventsVector::iterator aIter = aCollectEvents.begin();
-// aIter != aEnd;
-// aIter++)
-// {
-// EventNameValuesPair* pPair = &(*aIter);
-// delete pPair;
-// }
-// aCollectEvents.clear();
}
@@ -175,8 +166,6 @@ void XMLEventsImportContext::SetEvents(
++aIter)
{
AddEventValues(aIter->first, aIter->second);
-// EventNameValuesPair* pPair = &(*aIter);
-// delete pPair;
}
aCollectEvents.clear();
}
@@ -235,9 +224,6 @@ void XMLEventsImportContext::AddEventValues(
}
else
{
-// EventNameValuesPair* aPair = new EventNameValuesPair(rEventName,
-// rValues);
-// aCollectEvents.push_back(*aPair);
EventNameValuesPair aPair(rEventName, rValues);
aCollectEvents.push_back(aPair);
}
diff --git a/xmloff/source/script/XMLStarBasicContextFactory.cxx b/xmloff/source/script/XMLStarBasicContextFactory.cxx
index b8acd1cf4bae..259a78123170 100644
--- a/xmloff/source/script/XMLStarBasicContextFactory.cxx
+++ b/xmloff/source/script/XMLStarBasicContextFactory.cxx
@@ -80,18 +80,6 @@ SvXMLImportContext* XMLStarBasicContextFactory::CreateContext(
if (XML_NAMESPACE_SCRIPT == nPrefix)
{
-// if (IsXMLToken(sLocalName, XML_LIBRARY))
-// {
-// sLibraryVal = xAttrList->getValueByIndex(nAttr);
-// }
-// if (IsXMLToken(sLocalName, XML_LOCATION))
-// {
-// sLibraryVal = xAttrList->getValueByIndex(nAttr);
-// if ( IsXMLToken( sLibraryVal, XML_APPLICATION ) )
-// sLibraryVal =
-// OUString(RTL_CONSTASCII_USTRINGPARAM("StarOffice"));
-// }
-// else
if (IsXMLToken(sLocalName, XML_MACRO_NAME))
{
sMacroNameVal = xAttrList->getValueByIndex(nAttr);