mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix: remove unused variables
This commit is contained in:
parent
1f4fee0e4c
commit
e67cdadf3d
|
@ -619,7 +619,6 @@ void GenericChatForm::setColorizedNames(bool enable)
|
|||
void GenericChatForm::addSystemInfoMessage(const QString& message, ChatMessage::SystemMessageType type,
|
||||
const QDateTime& datetime)
|
||||
{
|
||||
previousId = ToxPk();
|
||||
insertChatMessage(ChatMessage::createChatInfoMessage(message, type, datetime));
|
||||
}
|
||||
|
||||
|
@ -628,7 +627,6 @@ void GenericChatForm::addSystemDateMessage(const QDate& date)
|
|||
const Settings& s = Settings::getInstance();
|
||||
QString dateText = date.toString(s.getDateFormat());
|
||||
|
||||
previousId = ToxPk();
|
||||
insertChatMessage(ChatMessage::createChatInfoMessage(dateText, ChatMessage::INFO, QDateTime()));
|
||||
}
|
||||
|
||||
|
@ -784,7 +782,6 @@ void GenericChatForm::clearChatArea(bool confirm, bool inform)
|
|||
}
|
||||
|
||||
chatWidget->clear();
|
||||
previousId = ToxPk();
|
||||
|
||||
if (inform)
|
||||
addSystemInfoMessage(tr("Cleared"), ChatMessage::INFO, QDateTime::currentDateTime());
|
||||
|
@ -1123,7 +1120,7 @@ void GenericChatForm::renderMessages(ChatLogIdx begin, ChatLogIdx end,
|
|||
if (onCompletion) {
|
||||
auto connection = std::make_shared<QMetaObject::Connection>();
|
||||
*connection = connect(chatWidget, &ChatLog::workerTimeoutFinished,
|
||||
[onCompletion, connection, this] {
|
||||
[onCompletion, connection] {
|
||||
onCompletion();
|
||||
disconnect(*connection);
|
||||
});
|
||||
|
|
|
@ -165,8 +165,6 @@ protected:
|
|||
QAction* exportChatAction;
|
||||
QAction* goCurrentDateAction;
|
||||
|
||||
ToxPk previousId;
|
||||
|
||||
QMenu menu;
|
||||
|
||||
QPushButton* emoteButton;
|
||||
|
|
Loading…
Reference in New Issue
Block a user