Remove unneeded code

This code was triggering the following warnings:

  src/mathed/InsetMathHull.cpp:234:15: error: variable 'counters_to_save' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
          const char * counters_to_save[] = {"section", "chapter"};
                       ^
  src/mathed/InsetMathHull.cpp:235:21: error: unused variable 'numcnts' [-Werror,-Wunused-const-variable]
          unsigned int const numcnts = sizeof(counters_to_save)/sizeof(char *);

The original code was put in at 645f9fdf (and the comment at 8a226ec4).

This commit amends a65e12d6.
This commit is contained in:
Scott Kostyshak 2022-07-27 07:26:19 -04:00
parent e0e548217e
commit 11d5e31c65

View File

@ -228,14 +228,6 @@ void InsetMathHull::setBuffer(Buffer & buffer)
} }
// FIXME This should really be controlled by the TOC level, or
// something of the sort.
namespace {
const char * counters_to_save[] = {"section", "chapter"};
unsigned int const numcnts = sizeof(counters_to_save)/sizeof(char *);
} // namespace
void InsetMathHull::updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted) void InsetMathHull::updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted)
{ {
if (!buffer_) { if (!buffer_) {