]> git.lyx.org Git - features.git/commitdiff
Remove now unused routine.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 6 Jan 2019 22:50:14 +0000 (17:50 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 6 Jan 2019 22:51:17 +0000 (17:51 -0500)
(cherry picked from commit d6b4db1a4f85b15090d15afda0b9ec6c23d28e4c)

src/insets/InsetRef.cpp
src/insets/InsetRef.h

index c6f6ea003b44bcbf5a9a2d5b4645be8488a93332..92ad754e50bec5981dab101995ae809b7b9364d0 100644 (file)
@@ -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_;
index 8976e03630987b0b52cdc7adf452f574d1a8bf75..267b72e494525b05deb02e9572f0d8c6fde3eb9c 100644 (file)
@@ -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 &);