]> 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)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:55 +0000 (14:39 +0200)
src/insets/InsetRef.cpp
src/insets/InsetRef.h

index 5ecba130b296b6c1b6c135d66a54b522deeb19c7..c9fcd993d09dbcc29114c7adbc2e5266e859ca32 100644 (file)
@@ -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_;
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 &);