]> git.lyx.org Git - features.git/commitdiff
Remove unused methods in anononymous namespace
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 19 Oct 2016 15:51:32 +0000 (17:51 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 19 Oct 2016 15:51:32 +0000 (17:51 +0200)
These have been flagged by gcc 6.

src/frontends/qt4/Menus.cpp
src/mathed/MathAutoCorrect.cpp
src/mathed/MathParser.cpp

index 78639b9e35b3aa83ec71952139a9c44904123190..da1160a18598210e7754db7c113f1e3e0a5ac13b 100644 (file)
@@ -319,8 +319,6 @@ public:
        ///
        size_t size() const { return items_.size(); }
        ///
-       MenuItem const & operator[](size_t) const;
-       ///
        const_iterator begin() const { return items_.begin(); }
        ///
        const_iterator end() const { return items_.end(); }
@@ -682,12 +680,6 @@ void MenuDefinition::read(Lexer & lex)
 }
 
 
-MenuItem const & MenuDefinition::operator[](size_type i) const
-{
-       return items_[i];
-}
-
-
 bool MenuDefinition::hasFunc(FuncRequest const & func) const
 {
        for (const_iterator it = begin(), et = end(); it != et; ++it)
index 2af6c4b77da3bae5ad7a987301ff0d0bf41213e2..17431114b8c983e622e6890d3147b1f13d379dae 100644 (file)
@@ -75,13 +75,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
 {
        //LYXERR(Debug::MATHED,
@@ -98,6 +91,13 @@ bool Correction::correct(MathAtom & at, char_type c) const
 
 
 #if 0
+void Correction::write(odocstream & os) const
+{
+       os << "from: '" << from1_ << "' and '" << from2_
+          << "' to '" << to_ << '\'' << endl;
+}
+
+
 idocstream & operator>>(idocstream & is, Correction & corr)
 {
        corr.read(is);
index 1e615d248b38731575fd73b95b4aa490a592dd10..4b0e5386c602caa4eaf7e44b699dbda44d82044a 100644 (file)
@@ -401,8 +401,6 @@ public:
        bool parse1(InsetMathGrid & grid, unsigned flags, mode_type mode,
                bool numbered);
        ///
-       MathData parse(unsigned flags, mode_type mode);
-       ///
        int lineno() const { return lineno_; }
        ///
        void putback();
@@ -435,8 +433,6 @@ private:
        ///
        void push_back(Token const & t);
        ///
-       void pop_back();
-       ///
        Token const & prevToken() const;
        ///
        Token const & nextToken() const;
@@ -501,12 +497,6 @@ void Parser::push_back(Token const & t)
 }
 
 
-void Parser::pop_back()
-{
-       tokens_.pop_back();
-}
-
-
 Token const & Parser::prevToken() const
 {
        static const Token dummy;
@@ -786,14 +776,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)
 {
        InsetMathGrid grid(buffer_, 1, 1);