Remove unused methods in anononymous namespace

These have been flagged by gcc 6.
(cherry picked from commit 4065f596ad)
This commit is contained in:
Jean-Marc Lasgouttes 2016-10-19 17:51:32 +02:00
parent d03a07b93a
commit 10b8421ed6
4 changed files with 8 additions and 34 deletions

View File

@ -323,8 +323,6 @@ public:
/// ///
size_t size() const { return items_.size(); } size_t size() const { return items_.size(); }
/// ///
MenuItem const & operator[](size_t) const;
///
const_iterator begin() const { return items_.begin(); } const_iterator begin() const { return items_.begin(); }
/// ///
const_iterator end() const { return items_.end(); } const_iterator end() const { return items_.end(); }
@ -686,12 +684,6 @@ void MenuDefinition::read(Lexer & lex)
} }
MenuItem const & MenuDefinition::operator[](size_type i) const
{
return items_[i];
}
bool MenuDefinition::hasFunc(FuncRequest const & func) const bool MenuDefinition::hasFunc(FuncRequest const & func) const
{ {
for (const_iterator it = begin(), et = end(); it != et; ++it) for (const_iterator it = begin(), et = end(); it != et; ++it)

View File

@ -72,13 +72,6 @@ bool Correction::read(idocstream & is)
} }
void Correction::write(odocstream & os) const
{
os << "from: '" << from1_ << "' and '" << from2_
<< "' to '" << to_ << '\'' << endl;
}
bool Correction::correct(MathAtom & at, char_type c) const bool Correction::correct(MathAtom & at, char_type c) const
{ {
//LYXERR(Debug::MATHED, //LYXERR(Debug::MATHED,
@ -95,6 +88,13 @@ bool Correction::correct(MathAtom & at, char_type c) const
#if 0 #if 0
void Correction::write(odocstream & os) const
{
os << "from: '" << from1_ << "' and '" << from2_
<< "' to '" << to_ << '\'' << endl;
}
idocstream & operator>>(idocstream & is, Correction & corr) idocstream & operator>>(idocstream & is, Correction & corr)
{ {
corr.read(is); corr.read(is);

View File

@ -400,8 +400,6 @@ public:
bool parse1(InsetMathGrid & grid, unsigned flags, mode_type mode, bool parse1(InsetMathGrid & grid, unsigned flags, mode_type mode,
bool numbered); bool numbered);
/// ///
MathData parse(unsigned flags, mode_type mode);
///
int lineno() const { return lineno_; } int lineno() const { return lineno_; }
/// ///
void putback(); void putback();
@ -434,8 +432,6 @@ private:
/// ///
void push_back(Token const & t); void push_back(Token const & t);
/// ///
void pop_back();
///
Token const & prevToken() const; Token const & prevToken() const;
/// ///
Token const & nextToken() const; Token const & nextToken() const;
@ -500,12 +496,6 @@ void Parser::push_back(Token const & t)
} }
void Parser::pop_back()
{
tokens_.pop_back();
}
Token const & Parser::prevToken() const Token const & Parser::prevToken() const
{ {
static const Token dummy; static const Token dummy;
@ -785,14 +775,6 @@ docstring Parser::parse_verbatim_item()
} }
MathData Parser::parse(unsigned flags, mode_type mode)
{
MathData ar(buffer_);
parse(ar, flags, mode);
return ar;
}
bool Parser::parse(MathData & array, unsigned flags, mode_type mode) bool Parser::parse(MathData & array, unsigned flags, mode_type mode)
{ {
InsetMathGrid grid(buffer_, 1, 1); InsetMathGrid grid(buffer_, 1, 1);

View File

@ -119,4 +119,4 @@ What's new
- Update boost source to 1.62. - Update boost source to 1.62.
- fix compiler warnings from clang 3.9 - fix compiler warnings from clang 3.9 and gcc 6.