diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-06 20:15:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-06 20:16:49 +0100 |
commit | bbdb24bfaa52a455baca553816d13480a3bd8be2 (patch) | |
tree | 56b4aab6c297555d3fd58a66ce35084183fd0ed6 | |
parent | 4ebebeba72ce21752da81f83670d2d5dd8816cde (diff) |
apparently OGenericUnoController::InvalidateFeature is unused
Change-Id: I3cd9d7fffc3b1c9b0891c6de23b1ff873d2a1158
-rw-r--r-- | dbaccess/source/ui/browser/genericcontroller.cxx | 5 | ||||
-rw-r--r-- | include/dbaccess/genericcontroller.hxx | 7 | ||||
-rw-r--r-- | unusedcode.easy | 1 |
3 files changed, 3 insertions, 10 deletions
diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx index 99e2fd778fb4..94db646b19c7 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 acd0e0668989..2b6ae5c37452 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 2ef8a72cf3b8..0edca1be87e8 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) |