From 6bba2aa6a883f92d3049d62d31f66362dbeaa623 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sun, 6 Jan 2019 17:50:14 -0500 Subject: [PATCH] Remove now unused routine. (cherry picked from commit d6b4db1a4f85b15090d15afda0b9ec6c23d28e4c) --- src/insets/InsetRef.cpp | 9 --------- src/insets/InsetRef.h | 2 -- 2 files changed, 11 deletions(-) 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 &);