From: Richard Kimberly Heck Date: Sun, 6 Jan 2019 22:50:14 +0000 (-0500) Subject: Remove now unused routine. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=736abd24d3ff8476c76f60e63d31425e963ad16c;p=features.git Remove now unused routine. --- diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp index 5ecba130b2..c9fcd993d0 100644 --- a/src/insets/InsetRef.cpp +++ b/src/insets/InsetRef.cpp @@ -485,15 +485,6 @@ InsetRef::type_info const InsetRef::types[] = { }; -int InsetRef::getType(string const & name) -{ - for (int i = 0; !types[i].latex_name.empty(); ++i) - if (name == types[i].latex_name) - return i; - return 0; -} - - docstring InsetRef::getTOCString() const { return tooltip_.empty() ? screenLabel() : tooltip_; diff --git a/src/insets/InsetRef.h b/src/insets/InsetRef.h index 8976e03630..267b72e494 100644 --- a/src/insets/InsetRef.h +++ b/src/insets/InsetRef.h @@ -29,8 +29,6 @@ public: std::string short_gui_name; }; static const type_info types[]; - /// - static int getType(std::string const & name); /// InsetRef(Buffer * buffer, InsetCommandParams const &);