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:
@@ -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();
|
||||
|
@@ -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();
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user