]> git.lyx.org Git - features.git/blobdiff - src/insets/insetnote.C
Added copy constructor to inset.h and used it in most insets which permit
[features.git] / src / insets / insetnote.C
index c8945ee3c8e53b9e92b1fbdc5c9806141026039f..cb62aea19f42c78cc4da249281ddf2655e9f6bbc 100644 (file)
@@ -58,19 +58,7 @@ InsetNote::InsetNote(Buffer const * buf, string const & contents,
        Paragraph * par = inset.paragraph();
        Paragraph::size_type pos = 0;
        buf->insertStringAsLines(par, pos, LyXFont(LyXFont::ALL_INHERIT), 
-                                strip(contents, '\n'));
-}
-
-
-Inset * InsetNote::clone(Buffer const &, bool same_id) const
-{
-       InsetNote * result = new InsetNote;
-       result->inset.init(&inset, same_id);
-
-       result->collapsed_ = collapsed_;
-       if (same_id)
-               result->id_ = id_;
-       return result;
+                                strip(contents, '\n'));
 }