summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-26 00:53:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-26 10:14:29 +0100
commit94a2bbe8c2e4d476b738d63b56da2e9e00fd137d (patch)
tree29221e710cd6e6283b6cf624301693711edfeb13 /svtools
parent56321c27af0774597246aaa54e1cdec5d62855ff (diff)
callcatcher: remove unused mapEventIDToName
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/unoevent.hxx3
-rw-r--r--svtools/source/uno/unoevent.cxx15
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);