summaryrefslogtreecommitdiff
path: root/xmloff/source/script/xmlscripti.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/script/xmlscripti.cxx')
-rw-r--r--xmloff/source/script/xmlscripti.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/xmloff/source/script/xmlscripti.cxx b/xmloff/source/script/xmlscripti.cxx
index 9b6850102f5a..e038515ed5f9 100644
--- a/xmloff/source/script/xmlscripti.cxx
+++ b/xmloff/source/script/xmlscripti.cxx
@@ -71,7 +71,7 @@ XMLScriptChildContext::XMLScriptChildContext( SvXMLImport& rImport, sal_uInt16 n
SvXMLImportContextRef XMLScriptChildContext::CreateChildContext(
sal_uInt16 nPrefix, const OUString& rLocalName,
- const Reference< xml::sax::XAttributeList >& xAttrList )
+ const Reference< xml::sax::XAttributeList >& /*xAttrList*/ )
{
SvXMLImportContextRef xContext;
@@ -83,9 +83,6 @@ SvXMLImportContextRef XMLScriptChildContext::CreateChildContext(
xContext = new XMLBasicImportContext( GetImport(), nPrefix, rLocalName, m_xModel );
}
- if (!xContext)
- xContext = SvXMLImportContext::CreateChildContext( nPrefix, rLocalName, xAttrList );
-
return xContext;
}
@@ -141,9 +138,6 @@ SvXMLImportContextRef XMLScriptContext::CreateChildContext(
}
}
- if (!xContext)
- xContext = SvXMLImportContext::CreateChildContext( nPrefix, rLName, xAttrList);
-
return xContext;
}