]> git.lyx.org Git - features.git/commitdiff
Remove unused private members.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 15 Sep 2019 22:15:28 +0000 (00:15 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 15 Sep 2019 22:17:08 +0000 (00:17 +0200)
Spotted by cppcheck.

src/insets/InsetBranch.h
src/insets/InsetCaption.cpp
src/insets/InsetCaption.h
src/insets/InsetExternal.cpp
src/insets/InsetExternal.h
src/insets/InsetNewline.h
src/insets/InsetNewpage.h
src/insets/InsetSeparator.h

index 391f2475f06765971a9d4d69afb324b5bef05943..6ac8a6744083ff0794bfc0b4e9275dec0176f951 100644 (file)
@@ -89,8 +89,6 @@ private:
        std::string contextMenuName() const;
        ///
        void updateBuffer(ParIterator const & it, UpdateType utype);
-       ///
-       void setParams(InsetBranchParams const & params) { params_ = params; }
 
        /** \returns true if params_.branch is listed as 'selected' in
                \c buffer. \p child only checks within child documents.
index 941047f337ecb055aa39819919259a941ae2f073..fcd03343065a95fb8ae7865137b88776f10a5415 100644 (file)
@@ -86,12 +86,6 @@ void InsetCaption::cursorPos(BufferView const & bv,
 }
 
 
-void InsetCaption::setCustomLabel(docstring const & label)
-{
-       custom_label_ = translateIfPossible(label);
-}
-
-
 void InsetCaption::addToToc(DocIterator const & cpit, bool output_active,
                                                        UpdateType utype, TocBackend & backend) const
 {
index 92dc9405c28e71691df4328e55c3078b3d226126..6cd6aa417dbd25403642c1f4e2994e32f506361f 100644 (file)
@@ -80,8 +80,6 @@ private:
        ///
        docstring xhtml(XHTMLStream & os, OutputParams const & runparams) const;
        ///
-       void setCustomLabel(docstring const & label);
-       ///
        void addToToc(DocIterator const & di, bool output_active, UpdateType utype,
                      TocBackend & backend) const;
        ///
@@ -101,8 +99,6 @@ private:
        bool is_subfloat_;
        ///
        std::string type_;
-       ///
-       docstring custom_label_;
 };
 
 
index d3d3aaa3b0b8c61c39ff1c0a900771ebc2f50cab..f604a1fb9d2e0028005a57524e643037b60e35c9 100644 (file)
@@ -451,12 +451,6 @@ bool InsetExternal::setMouseHover(BufferView const * bv, bool mouse_hover) const
 }
 
 
-void InsetExternal::statusChanged() const
-{
-       updateFrontend();
-}
-
-
 void InsetExternal::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        switch (cmd.action()) {
index 75b7f70ffa5f9d2690047422fec1145288552c13..032b3a2f8c45c75639c48294da10b2f7b273f44e 100644 (file)
@@ -155,10 +155,6 @@ private:
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
        Inset * clone() const { return new InsetExternal(*this); }
-       /** This method is connected to the graphics loader, so we are
-        *  informed when the image has been loaded.
-        */
-       void statusChanged() const;
        /** Slot receiving a signal that the external file has changed
         *  and the preview should be regenerated.
         */
index 2dc9c553ed70930e03c8d9fbefb1fc4a267d1446..53389d237000366266f53d93925d5002381c9de2 100644 (file)
@@ -51,8 +51,6 @@ public:
        ///
        static std::string params2string(InsetNewlineParams const &);
 private:
-       ///
-       InsetNewlineParams params() const { return params_; }
        ///
        InsetCode lyxCode() const { return NEWLINE_CODE; }
        ///
index 51f640a09700b1483b1feb8fe2f4fb939bf89e3e..4a7d60d0103d7c09f0e9442f703c1cfcdc8e5d65 100644 (file)
@@ -54,8 +54,6 @@ public:
        ///
        static std::string params2string(InsetNewpageParams const &);
 private:
-       ///
-       InsetNewpageParams params() const { return params_; }
        ///
        InsetCode lyxCode() const { return NEWPAGE_CODE; }
        ///
index 5d080ccae6c32d5c3576186a1cc221e357f9d119..2d256d6bee1b5593976f459e3aead29c35cd31aa 100644 (file)
@@ -65,8 +65,6 @@ public:
                return docstring();
        }
 private:
-       ///
-       InsetSeparatorParams params() const { return params_; }
        ///
        InsetCode lyxCode() const { return SEPARATOR_CODE; }
        ///