summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
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);