[Libreoffice-commits] core.git: dbaccess/source include/dbaccess unusedcode.easy

Caolán McNamara caolanm at redhat.com
Mon Apr 6 12:18:08 PDT 2015


 dbaccess/source/ui/browser/genericcontroller.cxx |    5 -----
 include/dbaccess/genericcontroller.hxx           |    7 +++----
 unusedcode.easy                                  |    1 -
 3 files changed, 3 insertions(+), 10 deletions(-)

New commits:
commit bbdb24bfaa52a455baca553816d13480a3bd8be2
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Apr 6 20:15:34 2015 +0100

    apparently OGenericUnoController::InvalidateFeature is unused
    
    Change-Id: I3cd9d7fffc3b1c9b0891c6de23b1ff873d2a1158

diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx
index 99e2fd7..94db646 100644
--- a/dbaccess/source/ui/browser/genericcontroller.cxx
+++ b/dbaccess/source/ui/browser/genericcontroller.cxx
@@ -524,11 +524,6 @@ bool OGenericUnoController::isFeatureSupported( sal_Int32 _nId )
     return ( m_aSupportedFeatures.end() != aFeaturePos && !aFeaturePos->first.isEmpty());
 }
 
-void OGenericUnoController::InvalidateFeature(const OUString& _rURLPath, const Reference< XStatusListener > & _xListener, bool _bForceBroadcast)
-{
-    ImplInvalidateFeature( m_aSupportedFeatures[ _rURLPath ].nFeatureId, _xListener, _bForceBroadcast );
-}
-
 void OGenericUnoController::InvalidateFeature_Impl()
 {
 #ifdef DBG_UTIL
diff --git a/include/dbaccess/genericcontroller.hxx b/include/dbaccess/genericcontroller.hxx
index acd0e06..2b6ae5c 100644
--- a/include/dbaccess/genericcontroller.hxx
+++ b/include/dbaccess/genericcontroller.hxx
@@ -412,10 +412,9 @@ namespace dbaui
         // shows a error box if the SQLExceptionInfo is valid
         void showError(const ::dbtools::SQLExceptionInfo& _rInfo);
 
-        // if xListener is NULL the change will be forwarded to all listeners to the given ::com::sun::star::util::URL
-        // if _bForceBroadcast is sal_True, the current feature state is broadcasted no matter if it is the same as the cached state
-        void InvalidateFeature(const OUString& rURLPath, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xListener = NULL, bool _bForceBroadcast = false);
-        // if there is an ::com::sun::star::util::URL translation for the id ('handle') the preceding InvalidateFeature is used.
+        // if there is an ::com::sun::star::util::URL translation for the id
+        // ('handle') then if if xListener is NULL the change will be forwarded
+        // to all listeners to the given ::com::sun::star::util::URL
         // if there is a toolbar slot with the given id it is updated (the new state is determined via GetState)
         // if _bForceBroadcast is sal_True, the current feature state is broadcasted no matter if it is the same as the cached state
         void InvalidateFeature(sal_uInt16 nId, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xListener = NULL, bool _bForceBroadcast = false);
diff --git a/unusedcode.easy b/unusedcode.easy
index 2ef8a72..0edca1b 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -179,7 +179,6 @@ dbaccess::StorageInputStream::close()
 dbaui::OConnectionLineAccess::contains(com::sun::star::awt::Point const&)
 dbaui::OConnectionLineAccess::isEditable() const
 dbaui::OConnectionLineAccess::isShowing()
-dbaui::OGenericUnoController::InvalidateFeature(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::frame::XStatusListener> const&, bool)
 dbaui::OJoinDesignViewAccess::isEditable() const
 dbaui::OQueryViewSwitch::resizeDocumentView(Rectangle&)
 dbaui::OQueryViewSwitch::setReadOnly(bool)


More information about the Libreoffice-commits mailing list