summaryrefslogtreecommitdiff
path: root/xmlscript/source/xmlmod_imexp
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-08-11 15:22:59 +0200
committerTor Lillqvist <tml@iki.fi>2013-08-12 06:59:10 +0000
commit4eb1232fbcf928e90267318e281aea5e8c9de6db (patch)
treeb2fb6f3748a831ebe4ce3cb405add3012a86f94c /xmlscript/source/xmlmod_imexp
parent9499df9f8c73ac6370c389683ce2028e6432441e (diff)
fdo#62475 removed pointless comments
Change-Id: I13e7eedaa5f0f116bd01834fc6db576c39350163 Reviewed-on: https://gerrit.libreoffice.org/5348 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'xmlscript/source/xmlmod_imexp')
-rw-r--r--xmlscript/source/xmlmod_imexp/imp_share.hxx5
-rw-r--r--xmlscript/source/xmlmod_imexp/xmlmod_export.cxx4
-rw-r--r--xmlscript/source/xmlmod_imexp/xmlmod_import.cxx32
3 files changed, 9 insertions, 32 deletions
diff --git a/xmlscript/source/xmlmod_imexp/imp_share.hxx b/xmlscript/source/xmlmod_imexp/imp_share.hxx
index cbdb625db17f..5529cd494f14 100644
--- a/xmlscript/source/xmlmod_imexp/imp_share.hxx
+++ b/xmlscript/source/xmlmod_imexp/imp_share.hxx
@@ -41,10 +41,8 @@ using namespace ::com::sun::star::uno;
namespace xmlscript
{
-//==================================================================================================
// Script module import
-//==================================================================================================
struct ModuleImport
: public ::cppu::WeakImplHelper1< xml::input::XRoot >
{
@@ -81,7 +79,6 @@ public:
throw (xml::sax::SAXException, RuntimeException);
};
-//==================================================================================================
class ModuleElement
: public ::cppu::WeakImplHelper1< xml::input::XElement >
{
@@ -127,8 +124,6 @@ public:
throw (xml::sax::SAXException, RuntimeException);
};
-//==================================================================================================
-
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlscript/source/xmlmod_imexp/xmlmod_export.cxx b/xmlscript/source/xmlmod_imexp/xmlmod_export.cxx
index 4048a1f21ca9..b656cd0c437f 100644
--- a/xmlscript/source/xmlmod_imexp/xmlmod_export.cxx
+++ b/xmlscript/source/xmlmod_imexp/xmlmod_export.cxx
@@ -17,19 +17,15 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include <xmlscript/xmlmod_imexp.hxx>
#include <xmlscript/xml_helper.hxx>
using namespace com::sun::star::uno;
using namespace com::sun::star;
-
namespace xmlscript
{
-//==================================================================================================
-
void
SAL_CALL exportScriptModule(
Reference< xml::sax::XWriter > const & xOut,
diff --git a/xmlscript/source/xmlmod_imexp/xmlmod_import.cxx b/xmlscript/source/xmlmod_imexp/xmlmod_import.cxx
index ae7787183322..c65a567b51ea 100644
--- a/xmlscript/source/xmlmod_imexp/xmlmod_import.cxx
+++ b/xmlscript/source/xmlmod_imexp/xmlmod_import.cxx
@@ -23,58 +23,52 @@
namespace xmlscript
{
-//##################################################################################################
-
-//__________________________________________________________________________________________________
Reference< xml::input::XElement > ModuleElement::getParent()
throw (RuntimeException)
{
return static_cast< xml::input::XElement * >( _pParent );
}
-//__________________________________________________________________________________________________
OUString ModuleElement::getLocalName()
throw (RuntimeException)
{
return _aLocalName;
}
-//__________________________________________________________________________________________________
sal_Int32 ModuleElement::getUid()
throw (RuntimeException)
{
return _pImport->XMLNS_SCRIPT_UID;
}
-//__________________________________________________________________________________________________
Reference< xml::input::XAttributes > ModuleElement::getAttributes()
throw (RuntimeException)
{
return _xAttributes;
}
-//__________________________________________________________________________________________________
+
void ModuleElement::ignorableWhitespace(
OUString const & /*rWhitespaces*/ )
throw (xml::sax::SAXException, RuntimeException)
{
// not used
}
-//__________________________________________________________________________________________________
+
void ModuleElement::characters( OUString const & rChars )
throw (xml::sax::SAXException, RuntimeException)
{
_StrBuffer.append( rChars );
}
-//__________________________________________________________________________________________________
+
void ModuleElement::processingInstruction(
OUString const & /*rTarget*/, OUString const & /*rData*/ )
throw (xml::sax::SAXException, RuntimeException)
{
}
-//__________________________________________________________________________________________________
+
void ModuleElement::endElement()
throw (xml::sax::SAXException, RuntimeException)
{
_pImport->mrModuleDesc.aCode = _StrBuffer.makeStringAndClear();
}
-//__________________________________________________________________________________________________
+
Reference< xml::input::XElement > ModuleElement::startChildElement(
sal_Int32 /*nUid*/, OUString const & /*rLocalName*/,
Reference< xml::input::XAttributes > const & /*xAttributes*/ )
@@ -83,7 +77,6 @@ Reference< xml::input::XElement > ModuleElement::startChildElement(
throw xml::sax::SAXException("unexpected element!", Reference< XInterface >(), Any() );
}
-//__________________________________________________________________________________________________
ModuleElement::ModuleElement(
OUString const & rLocalName,
Reference< xml::input::XAttributes > const & xAttributes,
@@ -101,7 +94,7 @@ ModuleElement::ModuleElement(
_pParent->acquire();
}
}
-//__________________________________________________________________________________________________
+
ModuleElement::~ModuleElement()
SAL_THROW(())
{
@@ -118,11 +111,8 @@ ModuleElement::~ModuleElement()
#endif
}
-//##################################################################################################
-
// XRoot
-//______________________________________________________________________________
void ModuleImport::startDocument(
Reference< xml::input::XNamespaceMapping > const & xNamespaceMapping )
throw (xml::sax::SAXException, RuntimeException)
@@ -132,25 +122,24 @@ void ModuleImport::startDocument(
XMLNS_XLINK_UID = xNamespaceMapping->getUidByUri( XMLNS_XLINK_URI );
}
-//__________________________________________________________________________________________________
void ModuleImport::endDocument()
throw (xml::sax::SAXException, RuntimeException)
{
// ignored
}
-//__________________________________________________________________________________________________
+
void ModuleImport::processingInstruction(
OUString const & /*rTarget*/, OUString const & /*rData*/ )
throw (xml::sax::SAXException, RuntimeException)
{
}
-//__________________________________________________________________________________________________
+
void ModuleImport::setDocumentLocator(
Reference< xml::sax::XLocator > const & /*xLocator*/ )
throw (xml::sax::SAXException, RuntimeException)
{
}
-//__________________________________________________________________________________________________
+
Reference< xml::input::XElement > ModuleImport::startRootElement(
sal_Int32 nUid, OUString const & rLocalName,
Reference< xml::input::XAttributes > const & xAttributes )
@@ -174,7 +163,6 @@ Reference< xml::input::XElement > ModuleImport::startRootElement(
throw xml::sax::SAXException("illegal root element (expected module) given: " + rLocalName, Reference< XInterface >(), Any() );
}
}
-//__________________________________________________________________________________________________
ModuleImport::~ModuleImport()
SAL_THROW(())
{
@@ -183,8 +171,6 @@ ModuleImport::~ModuleImport()
#endif
}
-//##################################################################################################
-
Reference< xml::sax::XDocumentHandler >
SAL_CALL importScriptModule( ModuleDescriptor& rMod )
SAL_THROW( (Exception) )