X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetMarginal.cpp;h=3dfcf7d048ff8eb4f19888db620567ff7306fbd7;hb=ebc2b1295a0464dde6c20a09ddc249c463a21c79;hp=1c1df328e96ba4e31c07d12ba9c585e59ccbdfeb;hpb=d1dddde6d800834eb6b8c7626da4d251e7c74f08;p=lyx.git diff --git a/src/insets/InsetMarginal.cpp b/src/insets/InsetMarginal.cpp index 1c1df328e9..3dfcf7d048 100644 --- a/src/insets/InsetMarginal.cpp +++ b/src/insets/InsetMarginal.cpp @@ -52,19 +52,4 @@ int InsetMarginal::docbook(odocstream & os, } -void InsetMarginal::addToToc(DocIterator const & cpit, bool output_active, - UpdateType utype) const -{ - DocIterator pit = cpit; - pit.push_back(CursorSlice(const_cast(*this))); - - docstring str; - text().forOutliner(str, TOC_ENTRY_LENGTH); - std::shared_ptr toc = buffer().tocBackend().toc("marginalnote"); - toc->push_back(TocItem(pit, 0, str, output_active)); - - // Proceed with the rest of the inset. - InsetFootlike::addToToc(cpit, output_active, utype); -} - } // namespace lyx