From 0439d04f9bacb170cc8d485659b80930892d0498 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 5 Feb 2009 22:01:12 +0000 Subject: [PATCH] This routine actually turns out to do nothing: The name gets read and set in factory.cpp. Bye bye routine. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28366 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetFlex.cpp | 18 ------------------ src/insets/InsetFlex.h | 2 -- 2 files changed, 20 deletions(-) diff --git a/src/insets/InsetFlex.cpp b/src/insets/InsetFlex.cpp index 06e346a483..3b34be760a 100644 --- a/src/insets/InsetFlex.cpp +++ b/src/insets/InsetFlex.cpp @@ -61,24 +61,6 @@ void InsetFlex::write(ostream & os) const } -void InsetFlex::read(Lexer & lex) -{ - string token; - while (lex.isOK()) { - lex >> token; - if (token == "Flex") { - lex.next(); - name_ = lex.getString(); - } else if (token == "status") { - // This is handled in Collapsable - lex.pushToken(token); - break; - } - } - InsetCollapsable::read(lex); -} - - int InsetFlex::plaintext(odocstream & os, OutputParams const & runparams) const { return InsetText::plaintext(os, runparams); diff --git a/src/insets/InsetFlex.h b/src/insets/InsetFlex.h index c38cecff10..bdf59f0fed 100644 --- a/src/insets/InsetFlex.h +++ b/src/insets/InsetFlex.h @@ -33,8 +33,6 @@ public: InsetCode lyxCode() const { return FLEX_CODE; } /// void write(std::ostream &) const; - /// - void read(Lexer & lex); /// int plaintext(odocstream &, OutputParams const &) const;