From 0a03d4e1b24d92533e5d79a4b9b3798efd449520 Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Sun, 6 Oct 2024 04:59:19 +0200 Subject: [PATCH] REFAC(client): Remove unused Settings variable --- src/mumble/MainWindow.cpp | 1 - src/mumble/Settings.cpp | 1 - src/mumble/Settings.h | 1 - src/mumble/SettingsMacros.h | 1 - 4 files changed, 4 deletions(-) diff --git a/src/mumble/MainWindow.cpp b/src/mumble/MainWindow.cpp index 629308fd2e4..0b533d3e919 100644 --- a/src/mumble/MainWindow.cpp +++ b/src/mumble/MainWindow.cpp @@ -1397,7 +1397,6 @@ void MainWindow::storeState(const bool minimalView) { } else { Global::get().s.qbaMainWindowGeometry = saveGeometry(); Global::get().s.qbaMainWindowState = saveState(stateVersion()); - Global::get().s.qbaHeaderState = qtvUsers->header()->saveState(); } } diff --git a/src/mumble/Settings.cpp b/src/mumble/Settings.cpp index e11bbbe8664..4fa802ce4c5 100644 --- a/src/mumble/Settings.cpp +++ b/src/mumble/Settings.cpp @@ -951,7 +951,6 @@ void Settings::legacyLoad(const QString &path) { LOAD(qbaMinimalViewState, "ui/minimalviewstate"); LOAD(qbaConfigGeometry, "ui/ConfigGeometry"); LOADENUM(wlWindowLayout, "ui/WindowLayout"); - LOAD(qbaHeaderState, "ui/header"); LOAD(qsUsername, "ui/username"); LOAD(qsLastServer, "ui/server"); LOADENUM(ssFilter, "ui/serverfilter"); diff --git a/src/mumble/Settings.h b/src/mumble/Settings.h index 279f9f016f3..2221b33c3c7 100644 --- a/src/mumble/Settings.h +++ b/src/mumble/Settings.h @@ -402,7 +402,6 @@ struct Settings { QByteArray qbaMainWindowState = {}; QByteArray qbaMinimalViewGeometry = {}; QByteArray qbaMinimalViewState = {}; - QByteArray qbaHeaderState = {}; QByteArray qbaConfigGeometry = {}; WindowLayout wlWindowLayout = LayoutClassic; ChannelExpand ceExpand = ChannelsWithUsers; diff --git a/src/mumble/SettingsMacros.h b/src/mumble/SettingsMacros.h index 3836ba6e818..dfcbee89974 100644 --- a/src/mumble/SettingsMacros.h +++ b/src/mumble/SettingsMacros.h @@ -158,7 +158,6 @@ PROCESS(ui, WINDOW_STATE_MINIMAL_VIEW_KEY, qbaMinimalViewState) \ PROCESS(ui, CONFIG_GEOMETRY_KEY, qbaConfigGeometry) \ PROCESS(ui, WINDOW_LAYOUT_KEY, wlWindowLayout) \ - PROCESS(ui, OVERLAY_HEADER_STATE, qbaHeaderState) \ PROCESS(ui, SERVER_FILTER_MODE_KEY, ssFilter) \ PROCESS(ui, HIDE_IN_TRAY_KEY, bHideInTray) \ PROCESS(ui, DISPLAY_TALKING_STATE_IN_TRAY_KEY, bStateInTray) \