]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.cpp
tex2lyx/text.cpp: fix typos
[lyx.git] / src / insets / InsetCaption.cpp
index 84efecc2d42e54d2ad1d897ea0b908f7f100cdd5..e623d9d597585b1c635d135b2a24fbf63d535995 100644 (file)
@@ -65,7 +65,7 @@ void InsetCaption::write(ostream & os) const
 }
 
 
-docstring InsetCaption::name() const
+docstring InsetCaption::layoutName() const
 {
        if (type_.empty())
                return from_ascii("Caption");
@@ -73,18 +73,6 @@ docstring InsetCaption::name() const
 }
 
 
-void InsetCaption::read(Lexer & lex)
-{
-#if 0
-       // We will enably this check again when the compability
-       // code is removed from Buffer::Read (Lgb)
-       lex.setContext("InsetCaption::Read: consistency check");
-       lex >> "Caption";
-#endif
-       InsetText::read(lex);
-}
-
-
 void InsetCaption::cursorPos(BufferView const & bv,
                CursorSlice const & sl, bool boundary, int & x, int & y) const
 {