Fix -Wunused-variable warnings

This commit is contained in:
Ilya Fedin
2021-07-13 21:51:07 +04:00
committed by John Preston
parent b6881022ce
commit 79cc797aff
156 changed files with 65 additions and 435 deletions

View File

@@ -197,7 +197,6 @@ void GroupMembersWidget::refreshMembers() {
}
fillChatMembers(chat);
} else if (const auto megagroup = peer()->asMegagroup()) {
auto &megagroupInfo = megagroup->mgInfo;
if (megagroup->lastParticipantsRequestNeeded()) {
megagroup->session().api().requestLastParticipants(megagroup);
}
@@ -213,7 +212,7 @@ void GroupMembersWidget::checkSelfAdmin(not_null<ChatData*> chat) {
return;
}
const auto self = chat->session().user();
//const auto self = chat->session().user();
//if (chat->amAdmin() && !chat->admins.contains(self)) {
// chat->admins.insert(self);
//} else if (!chat->amAdmin() && chat->admins.contains(self)) {

View File

@@ -62,7 +62,6 @@ void PeerListWidget::visibleTopBottomUpdated(int visibleTop, int visibleBottom)
void PeerListWidget::paintContents(Painter &p) {
auto left = getListLeft();
auto top = getListTop();
auto memberRowWidth = rowWidth();
auto from = floorclamp(_visibleTop - top, _st.height, 0, _items.size());
auto to = ceilclamp(_visibleBottom - top, _st.height, 0, _items.size());