From 27046e54d17bfa6fd8209762a101a17730ffeb6d Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Tue, 7 Jun 2022 19:55:21 +0200 Subject: [PATCH] Remove an unused member --- src/profile/Profile.cpp | 7 ------- src/profile/Profile.h | 1 - 2 files changed, 8 deletions(-) diff --git a/src/profile/Profile.cpp b/src/profile/Profile.cpp index de441816..00874f7c 100644 --- a/src/profile/Profile.cpp +++ b/src/profile/Profile.cpp @@ -141,7 +141,6 @@ const Profile::PropertyInfo Profile::DefaultPropertyNames[] = { {static_cast(0), nullptr, nullptr, QVariant::Invalid}}; QHash Profile::PropertyInfoByName; -QHash Profile::PropertyInfoByProperty; // Magic path for the built-in profile which is not a valid file name, // thus it can not interfere with regular profiles. @@ -344,12 +343,6 @@ void Profile::registerProperty(const PropertyInfo &info) { QString name = QLatin1String(info.name); PropertyInfoByName.insert(name.toLower(), info); - - // only allow one property -> name map - // (multiple name -> property mappings are allowed though) - if (!PropertyInfoByProperty.contains(info.property)) { - PropertyInfoByProperty.insert(info.property, info); - } } const QStringList Profile::propertiesInfoList() const diff --git a/src/profile/Profile.h b/src/profile/Profile.h index ccc14308..b7c25189 100644 --- a/src/profile/Profile.h +++ b/src/profile/Profile.h @@ -772,7 +772,6 @@ private: bool _hidden; static QHash PropertyInfoByName; - static QHash PropertyInfoByProperty; // Describes a property. Each property has a name and group // which is used when saving/loading the profile.