From ebd2089bc25369e964ddab6db52e00637f6c01ae Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 2 Nov 2007 23:12:43 +0000 Subject: [PATCH] Remremove unneeded init() method. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21394 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetListings.cpp | 29 +++++++---------------------- src/insets/InsetListings.h | 2 -- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index c43240bfe6..268644a615 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -31,43 +31,28 @@ #include +using std::istringstream; +using std::ostream; +using std::ostringstream; +using std::string; + namespace lyx { using support::token; using support::contains; using support::subst; -using std::istringstream; -using std::ostream; -using std::ostringstream; -using std::string; - char const lstinline_delimiters[] = "!*()-=+|;:'\"`,<.>/?QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm"; -void InsetListings::init() -{ - setButtonLabel(); - layout_.labelfont.setColor(Color_none); - - // FIXME: what to do with those? - //text_.current_font.setLanguage(latex_language); - //text_.real_current_font.setLanguage(latex_language); -} - - InsetListings::InsetListings(BufferParams const & bp, InsetListingsParams const & par) : InsetCollapsable(bp, par.status()) -{ - init(); -} +{} InsetListings::InsetListings(InsetListings const & in) : InsetCollapsable(in), params_(in.params_) -{ - init(); -} +{} Inset * InsetListings::clone() const diff --git a/src/insets/InsetListings.h b/src/insets/InsetListings.h index 4b0afc53f2..d2b63e7110 100644 --- a/src/insets/InsetListings.h +++ b/src/insets/InsetListings.h @@ -63,8 +63,6 @@ protected: private: virtual Inset * clone() const; /// - void init(); - /// void setButtonLabel(); /// docstring getCaption(Buffer const &, OutputParams const &) const; -- 2.39.5