]> git.lyx.org Git - lyx.git/commitdiff
Remove unused methods
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 8 Nov 2023 15:41:04 +0000 (16:41 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 8 Nov 2023 16:03:55 +0000 (17:03 +0100)
They actually lead to the following warning:
../../stable/src/mathed/InsetMath.h:236:26: warning: ‘virtual lyx::HullType lyx::InsetMath::getType() const’ was hidden [-Woverloaded-virtual=]
  236 |         virtual HullType getType() const;
      |                          ^~~~~~~
In file included from ../../stable/src/insets/InsetLabel.cpp:36:
../../stable/src/mathed/InsetMathRef.h:65:20: note:   by ‘static int lyx::InsetMathRef::getType(const lyx::docstring&)’
   65 |         static int getType(docstring const & name);
      |                    ^~~~~~~

In master the removal of these methods occurred as part of cf07d482.

src/mathed/InsetMathRef.h
status.23x

index d1046d9aba8b1d1ba3545c73a47019c8d3e7dee8..3209ac602a312390e13c8a6745f3b621c4b3f6e9 100644 (file)
@@ -62,10 +62,6 @@ public:
        };
        static ref_type_info types[];
        ///
-       static int getType(docstring const & name);
-       ///
-       static docstring const & getName(int type);
-       ///
        docstring const getTarget() const;
        ///
        InsetCode lyxCode() const { return MATH_REF_CODE; }
index 74b4f04aa66f2d7d21d31561e246f280e342560d..2281beaae0212092cf71bdb2b94a2b685d5d10e7 100644 (file)
@@ -70,6 +70,9 @@ What's new
 
 - Fix wrong computation of what is an obviously fake PID number.
 
+- remove a pair of static methods that were unused and hid another
+  one.
+
 
 * DOCUMENTATION AND LOCALIZATION