From: Richard Kimberly Heck Date: Sun, 6 Jan 2019 22:50:14 +0000 (-0500) Subject: Remove now unused routine. X-Git-Tag: 2.3.3~53 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6bba2aa6a883f92d3049d62d31f66362dbeaa623;p=features.git Remove now unused routine. (cherry picked from commit d6b4db1a4f85b15090d15afda0b9ec6c23d28e4c) --- diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp index c6f6ea003b..92ad754e50 100644 --- a/src/insets/InsetRef.cpp +++ b/src/insets/InsetRef.cpp @@ -483,15 +483,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 &);