CppEditor: Remove unused CppCodeStyleSettings::{to,from}Settings()

Change-Id: I4305b6cd296b7ad60ebf8683c53cb657c28b0e3e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-12-06 11:07:27 +01:00
parent 3963a8a072
commit b771129ded
2 changed files with 0 additions and 18 deletions

View File

@@ -69,17 +69,6 @@ namespace CppEditor {
CppCodeStyleSettings::CppCodeStyleSettings() = default; CppCodeStyleSettings::CppCodeStyleSettings() = default;
void CppCodeStyleSettings::toSettings(const QString &category, QSettings *s) const
{
Utils::toSettings(QLatin1String(groupPostfix), category, s, this);
}
void CppCodeStyleSettings::fromSettings(const QString &category, QSettings *s)
{
*this = CppCodeStyleSettings(); // Assign defaults
Utils::fromSettings(QLatin1String(groupPostfix), category, s, this);
}
QVariantMap CppCodeStyleSettings::toMap() const QVariantMap CppCodeStyleSettings::toMap() const
{ {
return { return {

View File

@@ -31,10 +31,6 @@
#include <QVariantMap> #include <QVariantMap>
QT_BEGIN_NAMESPACE
class QSettings;
QT_END_NAMESPACE
namespace CPlusPlus { class Overview; } namespace CPlusPlus { class Overview; }
namespace TextEditor { class TabSettings; } namespace TextEditor { class TabSettings; }
namespace ProjectExplorer { class Project; } namespace ProjectExplorer { class Project; }
@@ -88,9 +84,6 @@ public:
// CppEditor/QuickFixSetting. Remove in 4.16 // CppEditor/QuickFixSetting. Remove in 4.16
bool preferGetterNameWithoutGetPrefix = true; bool preferGetterNameWithoutGetPrefix = true;
void toSettings(const QString &category, QSettings *s) const;
void fromSettings(const QString &category, QSettings *s);
QVariantMap toMap() const; QVariantMap toMap() const;
void fromMap(const QVariantMap &map); void fromMap(const QVariantMap &map);