summary refs log tree commit diff
path: root/src/Utils.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2021-07-15 18:08:59 -0400
committerJoseph Donofry <joedonofry@gmail.com>2021-07-15 18:08:59 -0400
commit19f2c02eda12290c2e227086bd6ebc4b3284375c (patch)
tree7f22f457d1bd301324205702cd584b825ed0878e /src/Utils.cpp
parentFix warning by deleting code I don't understand (diff)
downloadnheko-19f2c02eda12290c2e227086bd6ebc4b3284375c.tar.xz
Remove 'respond to key requests' functionality
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r--src/Utils.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 8d5ae4a9..eabf50d9 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -172,22 +172,6 @@ utils::scaleFactor()
         return settings.value("settings/scale_factor", -1).toFloat();
 }
 
-bool
-utils::respondsToKeyRequests(const std::string &roomId)
-{
-        return respondsToKeyRequests(QString::fromStdString(roomId));
-}
-
-bool
-utils::respondsToKeyRequests(const QString &roomId)
-{
-        if (roomId.isEmpty())
-                return false;
-
-        QSettings settings;
-        return settings.value("rooms/respond_to_key_requests/" + roomId, false).toBool();
-}
-
 void
 utils::setKeyRequestsPreference(QString roomId, bool value)
 {