summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-02-09 16:31:33 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-02-09 16:31:33 +0100
commit0285bf5e4e625e5156034c942261afc731fd649a (patch)
tree9fd88e81202a90edf9a62de29239021560c5cff8 /src/ui
parentClean up config names a bit (diff)
downloadnheko-0285bf5e4e625e5156034c942261afc731fd649a.tar.xz
Remove unused variables
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/UserProfile.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp
index 274ed927..eb15705c 100644
--- a/src/ui/UserProfile.cpp
+++ b/src/ui/UserProfile.cpp
@@ -316,7 +316,6 @@ UserProfile::changeAvatar()
 
         const auto bin        = file.peek(file.size());
         const auto payload    = std::string(bin.data(), bin.size());
-        const auto dimensions = QImageReader(&file).size();
 
         isLoading_ = true;
         emit loadingChanged();
@@ -328,7 +327,6 @@ UserProfile::changeAvatar()
           mime.name().toStdString(),
           QFileInfo(fileName).fileName().toStdString(),
           [this,
-           dimensions,
            payload,
            mimetype = mime.name().toStdString(),
            size     = payload.size(),
@@ -371,7 +369,7 @@ UserProfile::updateRoomMemberState(mtx::events::state::Member member)
           roomid_.toStdString(),
           http::client()->user_id().to_string(),
           member,
-          [this](mtx::responses::EventId, mtx::http::RequestErr err) {
+          [](mtx::responses::EventId, mtx::http::RequestErr err) {
                   if (err)
                           nhlog::net()->error("Failed to update room member state : ",
                                               err->matrix_error.error);