]> git.lyx.org Git - features.git/commitdiff
Remremove unneeded init() method.
authorAbdelrazak Younes <younes@lyx.org>
Fri, 2 Nov 2007 23:12:43 +0000 (23:12 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 2 Nov 2007 23:12:43 +0000 (23:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21394 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetListings.cpp
src/insets/InsetListings.h

index c43240bfe61eb25b563a27cebc6435521aad837d..268644a615b25eed27e6fdc0b0f01f0655c94621 100644 (file)
 
 #include <sstream>
 
+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
index 4b0afc53f2931688d4a8910168885ef3ed3e3ecb..d2b63e7110cc687bc49f7dff896d06a190e80c3b 100644 (file)
@@ -63,8 +63,6 @@ protected:
 private:
        virtual Inset * clone() const;
        ///
-       void init();
-       ///
        void setButtonLabel();
        ///
        docstring getCaption(Buffer const &, OutputParams const &) const;