1
0
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:
sudden6 2020-03-01 01:12:36 +01:00
parent 1f4fee0e4c
commit e67cdadf3d
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
2 changed files with 1 additions and 6 deletions

View File

@ -619,7 +619,6 @@ void GenericChatForm::setColorizedNames(bool enable)
void GenericChatForm::addSystemInfoMessage(const QString& message, ChatMessage::SystemMessageType type, void GenericChatForm::addSystemInfoMessage(const QString& message, ChatMessage::SystemMessageType type,
const QDateTime& datetime) const QDateTime& datetime)
{ {
previousId = ToxPk();
insertChatMessage(ChatMessage::createChatInfoMessage(message, type, datetime)); insertChatMessage(ChatMessage::createChatInfoMessage(message, type, datetime));
} }
@ -628,7 +627,6 @@ void GenericChatForm::addSystemDateMessage(const QDate& date)
const Settings& s = Settings::getInstance(); const Settings& s = Settings::getInstance();
QString dateText = date.toString(s.getDateFormat()); QString dateText = date.toString(s.getDateFormat());
previousId = ToxPk();
insertChatMessage(ChatMessage::createChatInfoMessage(dateText, ChatMessage::INFO, QDateTime())); insertChatMessage(ChatMessage::createChatInfoMessage(dateText, ChatMessage::INFO, QDateTime()));
} }
@ -784,7 +782,6 @@ void GenericChatForm::clearChatArea(bool confirm, bool inform)
} }
chatWidget->clear(); chatWidget->clear();
previousId = ToxPk();
if (inform) if (inform)
addSystemInfoMessage(tr("Cleared"), ChatMessage::INFO, QDateTime::currentDateTime()); addSystemInfoMessage(tr("Cleared"), ChatMessage::INFO, QDateTime::currentDateTime());
@ -1123,7 +1120,7 @@ void GenericChatForm::renderMessages(ChatLogIdx begin, ChatLogIdx end,
if (onCompletion) { if (onCompletion) {
auto connection = std::make_shared<QMetaObject::Connection>(); auto connection = std::make_shared<QMetaObject::Connection>();
*connection = connect(chatWidget, &ChatLog::workerTimeoutFinished, *connection = connect(chatWidget, &ChatLog::workerTimeoutFinished,
[onCompletion, connection, this] { [onCompletion, connection] {
onCompletion(); onCompletion();
disconnect(*connection); disconnect(*connection);
}); });

View File

@ -165,8 +165,6 @@ protected:
QAction* exportChatAction; QAction* exportChatAction;
QAction* goCurrentDateAction; QAction* goCurrentDateAction;
ToxPk previousId;
QMenu menu; QMenu menu;
QPushButton* emoteButton; QPushButton* emoteButton;