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,
|
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);
|
||||||
});
|
});
|
||||||
|
|
|
@ -165,8 +165,6 @@ protected:
|
||||||
QAction* exportChatAction;
|
QAction* exportChatAction;
|
||||||
QAction* goCurrentDateAction;
|
QAction* goCurrentDateAction;
|
||||||
|
|
||||||
ToxPk previousId;
|
|
||||||
|
|
||||||
QMenu menu;
|
QMenu menu;
|
||||||
|
|
||||||
QPushButton* emoteButton;
|
QPushButton* emoteButton;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user