diff options
author | Jörg Barfurth <jb@openoffice.org> | 2001-04-03 15:28:40 +0000 |
---|---|---|
committer | Jörg Barfurth <jb@openoffice.org> | 2001-04-03 15:28:40 +0000 |
commit | 256499c0ddcd8f69a06f3c1bd5dd846f8cf70643 (patch) | |
tree | 2afc83f4cf59af8d2b679d6e53078fb7d8412faf | |
parent | 312f1aa7866f30fde0fdd7739e74d81ad4b88c25 (diff) |
Cleanup: Remove obsolete methods
-rw-r--r-- | configmgr/source/treemgr/template.cxx | 20 | ||||
-rw-r--r-- | configmgr/source/treemgr/templateimpl.cxx | 35 |
2 files changed, 4 insertions, 51 deletions
diff --git a/configmgr/source/treemgr/template.cxx b/configmgr/source/treemgr/template.cxx index 20512c8e5c12..dbcb2e66276a 100644 --- a/configmgr/source/treemgr/template.cxx +++ b/configmgr/source/treemgr/template.cxx @@ -2,9 +2,9 @@ * * $RCSfile: template.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: jb $ $Date: 2001-03-16 17:35:23 $ + * last change: $Author: jb $ $Date: 2001-04-03 16:28:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -137,14 +137,6 @@ RelativePath Template::getPath() const } //----------------------------------------------------------------------------- -#if 0 -TemplateHolder Template::fromPath(OUString const& sPath, TemplateProvider const& aProvider) -{ - TemplateName aNames( TemplateName::parseTemplatePath(sPath) ); - return TemplateImplHelper::findTemplate(aNames, aProvider ); -} -#endif -//----------------------------------------------------------------------------- TemplateHolder Template::fromNames(OUString const& sName, OUString const& sModule, TemplateProvider const& aProvider) { TemplateName aNames( TemplateName::parseTemplateNames(sName,sModule) ); @@ -164,14 +156,6 @@ TemplateHolder makeSimpleTemplate(UnoType const& aType, Attributes const& aAttrs return TemplateImplHelper::makeTemplate( aNames, aProvider, aType, aAttrs); } //----------------------------------------------------------------------------- -#if 0 -TemplateHolder makeTreeTemplate(OUString const& sPath, OUString const& sModule, TemplateProvider const& aProvider) -{ - TemplateName aNames( TemplateName::parseTemplatePath(sName) ); - return TemplateImplHelper::makeTemplate( aNames,aProvider, TemplateImplHelper::getUnoInterfaceType(), Attributes()); -} -#endif -//----------------------------------------------------------------------------- TemplateHolder makeTreeTemplate(OUString const& sName, OUString const& sModule, TemplateProvider const& aProvider) { diff --git a/configmgr/source/treemgr/templateimpl.cxx b/configmgr/source/treemgr/templateimpl.cxx index 821473880e0f..ae6ddbcec708 100644 --- a/configmgr/source/treemgr/templateimpl.cxx +++ b/configmgr/source/treemgr/templateimpl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: templateimpl.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: lla $ $Date: 2001-03-23 09:37:49 $ + * last change: $Author: jb $ $Date: 2001-04-03 16:28:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -128,37 +128,6 @@ UnoType TemplateName::resolveToSimpleType() const return aType; } //----------------------------------------------------------------------------- -#if 0 -TemplateName TemplateName::parseTemplatePath(OUString const& sName) -{ - Path::Components aPath = Path::parse(sName); - if (aPath.empty()) - return TemplateName(); - - TemplateName aNames( aPath.back() ); - - switch(aPath.size()) - { - case 1: break; - case 2: aNames.aModule = aPath.front(); break; - - case 3: if (aPath[0].isEmpty()) - { - aNames.aModule = aPath[1]; - break; - } - // fall through - default: - OSL_ENSURE(false, "Invalid template path - too many components"); - // hack - cram it all into the module part - aPath.pop_back(); - aNames.aModule = Name( PathRep(aPath).toString(), Name::NoValidate() ); - break; - } - return aNames; -} -#endif -//----------------------------------------------------------------------------- TemplateName TemplateName::parseTemplateNames(OUString const& sName,OUString const& sModule) { |