diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-21 10:15:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-21 10:07:37 +0000 |
commit | 0649622956431e0a1955cb80d1175025401ab5e5 (patch) | |
tree | cdaa1ff406d232399d53594ad1a32691402ab665 /dbaccess | |
parent | ede35e5c693a287f31e3c02d8afd33580e827380 (diff) |
loplugin:unusedmethods
Change-Id: I52a9f16f3ed543a3c83ca111df70e3f7ae1ef33c
Reviewed-on: https://gerrit.libreoffice.org/34508
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/genericcontroller.cxx | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx index dcac408abfce..a942fba97ffc 100644 --- a/dbaccess/source/ui/browser/genericcontroller.cxx +++ b/dbaccess/source/ui/browser/genericcontroller.cxx @@ -1361,34 +1361,6 @@ bool OGenericUnoController::isCommandEnabled(sal_uInt16 _nCommandId) const return GetState( _nCommandId ).bEnabled; } -sal_uInt16 OGenericUnoController::registerCommandURL( const OUString& _rCompleteCommandURL ) -{ - if ( _rCompleteCommandURL.isEmpty() ) - return 0; - - SupportedFeatures::const_iterator aIter = m_aSupportedFeatures.find( _rCompleteCommandURL ); - if ( aIter != m_aSupportedFeatures.end() ) - return aIter->second.nFeatureId; - - // this is a previously unknown command - sal_uInt16 nFeatureId = FIRST_USER_DEFINED_FEATURE; - while ( isFeatureSupported( nFeatureId ) && ( nFeatureId < LAST_USER_DEFINED_FEATURE ) ) - ++nFeatureId; - if ( nFeatureId == LAST_USER_DEFINED_FEATURE ) - { - SAL_WARN("dbaccess.ui", "OGenericUnoController::registerCommandURL: no more space for user defined features!" ); - return 0L; - } - - ControllerFeature aFeature; - aFeature.Command = _rCompleteCommandURL; - aFeature.nFeatureId = nFeatureId; - aFeature.GroupId = CommandGroup::INTERNAL; - m_aSupportedFeatures[ aFeature.Command ] = aFeature; - - return nFeatureId; -} - void OGenericUnoController::notifyHiContrastChanged() { } |