diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-22 23:18:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-22 23:45:16 +0000 |
commit | 279b71044d1a8b60452425b5b192d3dfb21a62fe (patch) | |
tree | 53b394958775ed2bc1d54c25c01b323cca48db31 /codemaker | |
parent | 59a5c37d0df9b5612552c4b749191385ca0adc80 (diff) |
callcatcher: remove unused typeToPrefix
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/inc/codemaker/commoncpp.hxx | 2 | ||||
-rw-r--r-- | codemaker/source/commoncpp/commoncpp.cxx | 25 |
2 files changed, 0 insertions, 27 deletions
diff --git a/codemaker/inc/codemaker/commoncpp.hxx b/codemaker/inc/codemaker/commoncpp.hxx index 5ccb5e30efcb..812dd042184f 100644 --- a/codemaker/inc/codemaker/commoncpp.hxx +++ b/codemaker/inc/codemaker/commoncpp.hxx @@ -33,8 +33,6 @@ namespace codemaker { namespace cpp { -rtl::OString typeToPrefix(TypeManager const & manager, rtl::OString const & type); - rtl::OString scopedCppName(rtl::OString const & type, bool bNoNameSpace=false, bool shortname=false); diff --git a/codemaker/source/commoncpp/commoncpp.cxx b/codemaker/source/commoncpp/commoncpp.cxx index a6926e607956..ddd9dade1de6 100644 --- a/codemaker/source/commoncpp/commoncpp.cxx +++ b/codemaker/source/commoncpp/commoncpp.cxx @@ -46,31 +46,6 @@ namespace codemaker { namespace cpp { -rtl::OString typeToPrefix(TypeManager const & manager, rtl::OString const & type) -{ - RTTypeClass typeclass = manager.getTypeClass(type); - if (typeclass == RT_TYPE_INVALID || - typeclass == RT_TYPE_PUBLISHED) - return rtl::OString("_"); - - static char const * const typeclassPrefix[RT_TYPE_UNION + 1] = { - "invalid", /* RT_TYPE_INVALID, is here only as placeholder */ - "interface", /* RT_TYPE_INTERFACE */ - "module", /* RT_TYPE_MODULE */ - "struct", /* RT_TYPE_STRUCT */ - "enum", /* RT_TYPE_ENUM */ - "exception", /* RT_TYPE_EXCEPTION */ - "typedef", /* RT_TYPE_TYPEDEF */ - "service", /* RT_TYPE_SERVICE */ - "singleton", /* RT_TYPE_SINGLETON */ - "object", /* RT_TYPE_OBJECT */ - "constants", /* RT_TYPE_CONSTANTS */ - "union" /* RT_TYPE_UNION */ - }; - - return rtl::OString(typeclassPrefix[typeclass]); -} - rtl::OString scopedCppName(rtl::OString const & type, bool bNoNameSpace, bool shortname) { |