Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


This patch removes unused code as listed in unusedcode.easy
From a934503727e8f8970695d3a61f78e7e2d66ce137 Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvarela@gmail.com>
Date: Sat, 24 Mar 2012 01:01:49 +0100
Subject: [PATCH] Remove unused code in xmloff.

---
 unusedcode.easy                 |    2 --
 xmloff/inc/xmloff/xmlerror.hxx  |   12 ------------
 xmloff/source/core/xmlerror.cxx |   17 -----------------
 3 files changed, 0 insertions(+), 31 deletions(-)

diff --git a/unusedcode.easy b/unusedcode.easy
index 134cc54..d19d8c8 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -337,8 +337,6 @@ Window::PostUserEvent(unsigned long&, unsigned long, void*)
 X11SalGraphics::SetMask(int&, int&, unsigned int&, unsigned int&, int&, int&, unsigned long)
 
X509Certificate_NssImpl::getImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>)
 XMLElement::Equals(rtl::OUString)
-XMLErrors::AddRecord(int, com::sun::star::uno::Sequence<rtl::OUString> const&)
-XMLErrors::AddRecord(int, com::sun::star::uno::Sequence<rtl::OUString> const&, rtl::OUString 
const&)
 XMLFamilyDataList_Impl::GetPos(XMLFamilyData_Impl const*) const
 XMLFamilyDataList_Impl::Remove(XMLFamilyData_Impl*)
 XMLFontAutoStylePoolNames_Impl::GetPos(rtl::OUString const*) const
diff --git a/xmloff/inc/xmloff/xmlerror.hxx b/xmloff/inc/xmloff/xmlerror.hxx
index 46595f6..b5fbbd8 100644
--- a/xmloff/inc/xmloff/xmlerror.hxx
+++ b/xmloff/inc/xmloff/xmlerror.hxx
@@ -143,18 +143,6 @@ public:
         const ::com::sun::star::uno::Reference<
                  ::com::sun::star::xml::sax::XLocator> & rLocator); /// location
 
-    void AddRecord(
-        sal_Int32 nId, /// error ID == error flags + error class + error number
-        const ::com::sun::star::uno::Sequence<
-                  ::rtl::OUString> & rParams,  /// parameters for error message
-        const ::rtl::OUString& rExceptionMessage); /// original exception string
-
-    void AddRecord(
-        sal_Int32 nId, /// error ID == error flags + error class + error number
-        const ::com::sun::star::uno::Sequence<
-                  ::rtl::OUString> & rParams); /// parameters for error message
-
-
     /**
      * throw a SAXParseException that describes the first error that matches
      * the given mask
diff --git a/xmloff/source/core/xmlerror.cxx b/xmloff/source/core/xmlerror.cxx
index 10c437b..8d765d2 100644
--- a/xmloff/source/core/xmlerror.cxx
+++ b/xmloff/source/core/xmlerror.cxx
@@ -216,23 +216,6 @@ void XMLErrors::AddRecord(
     }
 }
 
-void XMLErrors::AddRecord(
-    sal_Int32 nId,
-    const Sequence<OUString> & rParams,
-    const OUString& rExceptionMessage)
-{
-    OUString sEmpty;
-    AddRecord( nId, rParams, rExceptionMessage, -1, -1, sEmpty, sEmpty );
-}
-
-void XMLErrors::AddRecord(
-    sal_Int32 nId,
-    const Sequence<OUString> & rParams)
-{
-    OUString sEmpty;
-    AddRecord( nId, rParams, sEmpty, -1, -1, sEmpty, sEmpty );
-}
-
 void XMLErrors::ThrowErrorAsSAXException(sal_Int32 nIdMask)
     throw( SAXParseException )
 {
-- 
1.7.7.6


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.