mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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 at645f9fdf
(and the comment at8a226ec4
). This commit amendsa65e12d6
.
This commit is contained in:
parent
e0e548217e
commit
11d5e31c65
@ -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)
|
||||
{
|
||||
if (!buffer_) {
|
||||
|
Loading…
Reference in New Issue
Block a user