From c45f6501f501a65f753604bfd2341035ae12fd30 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Wed, 16 Aug 2023 12:49:23 -0400 Subject: Make quick_read_setting() a templated method This allows terser usage and removes the need for manually invoking QVariant's .value() method. --- src/settings_interface.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/settings_interface.cpp') diff --git a/src/settings_interface.cpp b/src/settings_interface.cpp index 17c5991..e14da92 100644 --- a/src/settings_interface.cpp +++ b/src/settings_interface.cpp @@ -19,11 +19,6 @@ const QVariant SettingsInterface::read_setting(const QString &key) { return qt_settings.value(key, default_setting(key)); } -const QVariant SettingsInterface::quick_read_setting(const QString &key) { - static SettingsInterface settings; - return settings.read_setting(key); -} - // Write a new value for key. Isn't written to disk until you use SettingsInterface::commit(). void SettingsInterface::write_setting(const QString &key, const QVariant &value) { if (not modified) modified = new QHash; -- cgit v1.2.3-54-g00ecf