commit eba6a9cfc7f1b155582512f82ff45e35b64540e6
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Tue Sep 22 16:20:10 2026 +0200

    Remove unused variables or structure
    
    Spotted by cppcheck.
---
 src/Buffer.cpp                      |  2 --
 src/frontends/qt/GuiInputMethod.cpp |  2 --
 src/frontends/qt/GuiListings.cpp    | 12 ------------
 src/frontends/qt/GuiPrefs.cpp       |  1 -
 src/graphics/GraphicsLoader.cpp     |  3 ---
 src/insets/InsetIndex.cpp           |  1 -
 6 files changed, 21 deletions(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 15c4ba3e77..08124ceaa3 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -140,8 +140,6 @@ struct LabelInfo {
        docstring label;
        /// label inset
        InsetLabel const * inset;
-       /// associated references cache
-       Buffer::References references;
        /// whether this label is active (i.e., not deleted)
        bool active;
 };
diff --git a/src/frontends/qt/GuiInputMethod.cpp 
b/src/frontends/qt/GuiInputMethod.cpp
index 1f161ebc30..677d3f99f9 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -53,8 +53,6 @@ struct GuiInputMethod::Private
        Cursor * cur_;
        /// if undergoing preedit input is overriding a selection
        bool has_selection_ = false;
-       ///
-       bool has_multiple_rows_;
 
        QInputMethod * sys_im_ = guiApp->inputMethod();
        QLocale locale_;
diff --git a/src/frontends/qt/GuiListings.cpp b/src/frontends/qt/GuiListings.cpp
index 77c8c333c0..0af86c270d 100644
--- a/src/frontends/qt/GuiListings.cpp
+++ b/src/frontends/qt/GuiListings.cpp
@@ -46,18 +46,6 @@ namespace frontend {
 /////////////////////////////////////////////////////////////////////
 
 
-struct dialect_info {
-       /// the dialect
-       char const * dialect;
-       /// the associated language
-       char const * language;
-       /// representation of the dialect in the gui
-       char const * gui;
-       /// is this the default dialect?
-       bool is_default;
-};
-
-
 char const * font_sizes[] =
 { "default", "tiny", "scriptsize", "footnotesize", "small", "normalsize", 
"large",
   "Large", "" };
diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp
index d2510bf6e3..65f6d16d93 100644
--- a/src/frontends/qt/GuiPrefs.cpp
+++ b/src/frontends/qt/GuiPrefs.cpp
@@ -2609,7 +2609,6 @@ void PrefConverters::updateRC(LyXRC const & rc)
        cacheCB->setChecked(rc.use_converter_cache);
        needauthForbiddenCB->setChecked(rc.use_converter_needauth_forbidden);
        setCheckboxBlockSignals(needauthCB, rc.use_converter_needauth);
-       QString max_age;
        doubleToWidget(maxAgeLE, (double(rc.converter_cache_maxage) / 86400.0), 
'g', 6);
        updateGui();
 }
diff --git a/src/graphics/GraphicsLoader.cpp b/src/graphics/GraphicsLoader.cpp
index 6ae605cdc8..edc9403843 100644
--- a/src/graphics/GraphicsLoader.cpp
+++ b/src/graphics/GraphicsLoader.cpp
@@ -22,7 +22,6 @@
 #include "support/Timeout.h"
 
 #include <list>
-#include <queue>
 #include <memory>
 #include <set>
 
@@ -55,8 +54,6 @@ private:
        list<Cache::ItemPtr> cache_queue_;
        /// Used to make the insertion of new elements faster.
        set<Cache::ItemPtr> cache_set_;
-       /// Newly touched elements go here. loadNext moves them to cache_queue_
-       queue<Cache::ItemPtr> bucket_;
        ///
        Timeout timer;
        ///
diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp
index 0a38aa0993..d01d9f4a8e 100644
--- a/src/insets/InsetIndex.cpp
+++ b/src/insets/InsetIndex.cpp
@@ -1647,7 +1647,6 @@ private:
        // Parsed index entry.
        std::vector<docstring> terms_; // Up to three entries, in general.
        docstring sort_as_;
-       docstring command_;
        bool has_start_range_ = false;
        bool has_end_range_ = false;
        docstring see_;
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to