From 10cccff7c00abac8dfd1190e17ed349c4d55cee9 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 7 Oct 2003 11:03:37 +0000 Subject: [PATCH] Remove unused member function. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7870 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 5 +++++ src/insets/ExternalTemplate.C | 7 ------- src/insets/ExternalTemplate.h | 10 ++++------ 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 449a6e7afa..e05682d5bf 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2003-10-07 Angus Leeming + + * ExternalTemplate.[Ch] (TemplateManager::getTemplates): remove + non-const member function. + 2003-10-07 Martin Vermeer * Makefile.am: diff --git a/src/insets/ExternalTemplate.C b/src/insets/ExternalTemplate.C index f95a3a9b66..be92782634 100644 --- a/src/insets/ExternalTemplate.C +++ b/src/insets/ExternalTemplate.C @@ -154,13 +154,6 @@ TemplateManager & TemplateManager::get() } -TemplateManager::Templates & -TemplateManager::getTemplates() -{ - return templates; -} - - TemplateManager::Templates const & TemplateManager::getTemplates() const { diff --git a/src/insets/ExternalTemplate.h b/src/insets/ExternalTemplate.h index 766d89880e..4259652ae7 100644 --- a/src/insets/ExternalTemplate.h +++ b/src/insets/ExternalTemplate.h @@ -12,11 +12,11 @@ #ifndef EXTERNALTEMPLATE_H #define EXTERNALTEMPLATE_H -#include #include #include #include +#include #include class LyXLex; @@ -24,7 +24,6 @@ class LyXLex; namespace lyx { namespace external { -/// struct Template { /// We have to have default commands for safety reasons! Template(); @@ -52,7 +51,6 @@ struct Template { /// This is the information needed to support a specific output format struct Format { - /// This constructor has to default a command for safety reasons! Format(); /// void readFormat(LyXLex &); @@ -76,8 +74,8 @@ struct Template { /** - A singleton class that manages the external inset templates -*/ + * A singleton class that manages the external inset templates + */ class TemplateManager : boost::noncopyable { public: /// Map from the LyX name of the template to the template structure @@ -88,7 +86,7 @@ public: typedef std::map PreambleDefs; static TemplateManager & get(); - Templates & getTemplates(); + Templates const & getTemplates() const; /** return the template by LyX name. * If it isn't found, return 0. -- 2.39.5