diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-26 00:53:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-26 10:14:29 +0100 |
commit | 94a2bbe8c2e4d476b738d63b56da2e9e00fd137d (patch) | |
tree | 29221e710cd6e6283b6cf624301693711edfeb13 /svtools | |
parent | add a test for a nasty suspicion I have (diff) | |
download | core-94a2bbe8c2e4d476b738d63b56da2e9e00fd137d.tar.gz core-94a2bbe8c2e4d476b738d63b56da2e9e00fd137d.zip |
callcatcher: remove unused mapEventIDToName
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/svtools/unoevent.hxx | 3 | ||||
-rw-r--r-- | svtools/source/uno/unoevent.cxx | 15 |
2 files changed, 0 insertions, 18 deletions
diff --git a/svtools/inc/svtools/unoevent.hxx b/svtools/inc/svtools/unoevent.hxx index 8bf8898d6b2a..d4db9a75f879 100644 --- a/svtools/inc/svtools/unoevent.hxx +++ b/svtools/inc/svtools/unoevent.hxx @@ -171,9 +171,6 @@ protected: /// convert an API event name to the event ID as used by SvxMacroItem sal_uInt16 mapNameToEventID(const ::rtl::OUString& rName) const; - /// convert an event ID to an API event name - ::rtl::OUString mapEventIDToName(sal_uInt16 nPoolID) const; - /// get the event ID for the name; return 0 if not supported sal_uInt16 getMacroID(const ::rtl::OUString& rName) const; diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx index f06f809af319..fde42644d5d6 100644 --- a/svtools/source/uno/unoevent.cxx +++ b/svtools/source/uno/unoevent.cxx @@ -191,21 +191,6 @@ sal_uInt16 SvBaseEventDescriptor::mapNameToEventID(const OUString& rName) const return 0; } -OUString SvBaseEventDescriptor::mapEventIDToName(sal_uInt16 nPoolID) const -{ - // iterate over known event IDs - for(sal_Int16 i = 0; i < mnMacroItems; i++) - { - if (nPoolID == mpSupportedMacroItems[i].mnEvent) - { - return OUString::createFromAscii(mpSupportedMacroItems[i].mpEventName); - } - } - - // not found -> return empty string - return OUString(); -} - sal_uInt16 SvBaseEventDescriptor::getMacroID(const OUString& rName) const { return mapNameToEventID(rName); |