[utilities/kate] addons/lspclient: lspclient: remove unused plugin argument from view tracker
Christoph Cullmann <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 4807f0eb4e2c5233d05b6c5dbc0e4f5d10707edd by Christoph Cullmann, on behalf of leia uwu.
Committed on 18/08/2026 at 18:04.
Pushed by cullmann into branch 'master'.
lspclient: remove unused plugin argument from view tracker
M +5 -7 addons/lspclient/lspclientsymbolview.cpp
M +1 -1 addons/lspclient/lspclientsymbolview.h
https://invent.kde.org/utilities/kate/-/commit/4807f0eb4e2c5233d05b6c5dbc0e4f5d10707edd
diff --git a/addons/lspclient/lspclientsymbolview.cpp b/addons/lspclient/lspclientsymbolview.cpp
index 8f95aec40a..c076021be0 100644
--- a/addons/lspclient/lspclientsymbolview.cpp
+++ b/addons/lspclient/lspclientsymbolview.cpp
@@ -148,13 +148,11 @@ class LSPClientViewTrackerImpl : public LSPClientViewTracker
int m_oldCursorLine = -1;
public:
- LSPClientViewTrackerImpl(LSPClientPlugin *plugin, KTextEditor::MainWindow *mainWin, int change_ms, int motion_ms)
- : m_plugin(plugin)
- , m_mainWindow(mainWin)
+ LSPClientViewTrackerImpl(KTextEditor::MainWindow *mainWin, int change_ms, int motion_ms)
+ : m_mainWindow(mainWin)
, m_change(change_ms)
, m_motion(motion_ms)
{
- Q_UNUSED(m_plugin);
// get updated
m_changeTimer.setSingleShot(true);
auto ch = [this]() {
@@ -209,9 +207,9 @@ public:
}
};
-LSPClientViewTracker *LSPClientViewTracker::new_(LSPClientPlugin *plugin, KTextEditor::MainWindow *mainWin, int change_ms, int motion_ms)
+LSPClientViewTracker *LSPClientViewTracker::new_(KTextEditor::MainWindow *mainWin, int change_ms, int motion_ms)
{
- return new LSPClientViewTrackerImpl(plugin, mainWin, change_ms, motion_ms);
+ return new LSPClientViewTrackerImpl(mainWin, change_ms, motion_ms);
}
class LSPClientSymbolViewFilterProxyModel : public QSortFilterProxyModel
@@ -399,7 +397,7 @@ public:
connect(m_plugin, &LSPClientPlugin::update, this, &self_type::configUpdated);
// get updated
- m_viewTracker.reset(LSPClientViewTracker::new_(plugin, mainWin, 500, 100));
+ m_viewTracker.reset(LSPClientViewTracker::new_(mainWin, 500, 100));
connect(m_viewTracker.get(), &LSPClientViewTracker::newState, this, &self_type::onViewState);
connect(m_serverManager.get(), &LSPClientServerManager::serverChanged, this, [this]() {
refresh(false, false);
diff --git a/addons/lspclient/lspclientsymbolview.h b/addons/lspclient/lspclientsymbolview.h
index 736f333a0e..2137ee4a8d 100644
--- a/addons/lspclient/lspclientsymbolview.h
+++ b/addons/lspclient/lspclientsymbolview.h
@@ -28,7 +28,7 @@ class LSPClientViewTracker : public QObject
Q_OBJECT
public:
// factory method; private implementation by interface
- static LSPClientViewTracker *new_(LSPClientPlugin *plugin, KTextEditor::MainWindow *mainWin, int change_ms, int motion_ms);
+ static LSPClientViewTracker *new_(KTextEditor::MainWindow *mainWin, int change_ms, int motion_ms);
enum State {
ViewChanged,