2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix -Wunused-function warnings

This commit is contained in:
Ilya Fedin
2021-07-12 11:13:58 +04:00
committed by John Preston
parent 84b1fac0c8
commit 89765340c3
19 changed files with 6 additions and 231 deletions

View File

@@ -41,10 +41,6 @@ namespace Notifications {
namespace Default {
namespace {
int notificationMaxHeight() {
return st::notifyMinHeight + st::notifyReplyArea.heightMax + st::notifyBorderWidth;
}
QPoint notificationStartPosition() {
const auto corner = Core::App().settings().notificationsCorner();
const auto window = Core::App().activeWindow();

View File

@@ -254,10 +254,6 @@ void ImportFromFile(
crl::guard(parent, callback));
}
[[nodiscard]] QString BytesToUTF8(QLatin1String string) {
return QString::fromUtf8(string.data(), string.size());
}
// They're duplicated in window_theme.cpp:ChatBackground::ChatBackground.
[[nodiscard]] QByteArray ReplaceAdjustableColors(QByteArray data) {
const auto &themeObject = Background()->themeObject();

View File

@@ -96,6 +96,7 @@ void Bar::paintEvent(QPaintEvent *e) {
_soon ? st::outdateSoonBg : st::outdatedBg);
}
#ifdef DESKTOP_APP_SPECIAL_TARGET
QString LastHiddenPath() {
return cWorkingDir() + qsl("tdata/outdated_hidden");
}
@@ -145,6 +146,7 @@ void Closed() {
reinterpret_cast<const char*>(&value),
sizeof(qint32)));
}
#endif // DESKTOP_APP_SPECIAL_TARGET
} // namespace