mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
Remove unused variables
This commit is contained in:
parent
50f994bd23
commit
0285bf5e4e
1 changed files with 1 additions and 3 deletions
|
@ -316,7 +316,6 @@ UserProfile::changeAvatar()
|
||||||
|
|
||||||
const auto bin = file.peek(file.size());
|
const auto bin = file.peek(file.size());
|
||||||
const auto payload = std::string(bin.data(), bin.size());
|
const auto payload = std::string(bin.data(), bin.size());
|
||||||
const auto dimensions = QImageReader(&file).size();
|
|
||||||
|
|
||||||
isLoading_ = true;
|
isLoading_ = true;
|
||||||
emit loadingChanged();
|
emit loadingChanged();
|
||||||
|
@ -328,7 +327,6 @@ UserProfile::changeAvatar()
|
||||||
mime.name().toStdString(),
|
mime.name().toStdString(),
|
||||||
QFileInfo(fileName).fileName().toStdString(),
|
QFileInfo(fileName).fileName().toStdString(),
|
||||||
[this,
|
[this,
|
||||||
dimensions,
|
|
||||||
payload,
|
payload,
|
||||||
mimetype = mime.name().toStdString(),
|
mimetype = mime.name().toStdString(),
|
||||||
size = payload.size(),
|
size = payload.size(),
|
||||||
|
@ -371,7 +369,7 @@ UserProfile::updateRoomMemberState(mtx::events::state::Member member)
|
||||||
roomid_.toStdString(),
|
roomid_.toStdString(),
|
||||||
http::client()->user_id().to_string(),
|
http::client()->user_id().to_string(),
|
||||||
member,
|
member,
|
||||||
[this](mtx::responses::EventId, mtx::http::RequestErr err) {
|
[](mtx::responses::EventId, mtx::http::RequestErr err) {
|
||||||
if (err)
|
if (err)
|
||||||
nhlog::net()->error("Failed to update room member state : ",
|
nhlog::net()->error("Failed to update room member state : ",
|
||||||
err->matrix_error.error);
|
err->matrix_error.error);
|
||||||
|
|
Loading…
Reference in a new issue