Skip to content

Commit d53ee9c

Browse files
osokinjohn-preston
authored andcommitted
Fix warnings.
1 parent 5bb0392 commit d53ee9c

13 files changed

Lines changed: 0 additions & 18 deletions

File tree

Telegram/SourceFiles/boxes/edit_todo_list_box.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ For license and copyright information please follow this link:
5353

5454
namespace {
5555

56-
constexpr auto kMaxOptionsCount = TodoListData::kMaxOptions;
5756
constexpr auto kWarnTitleLimit = 12;
5857
constexpr auto kWarnTaskLimit = 24;
5958
constexpr auto kErrorLimit = 99;

Telegram/SourceFiles/boxes/star_gift_craft_animation.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ constexpr auto kSuccessFadeInDuration = crl::time(300);
5555
constexpr auto kSuccessExpandDuration = crl::time(400);
5656
constexpr auto kSuccessExpandStart = crl::time(100);
5757
constexpr auto kProgressFadeInDuration = crl::time(300);
58-
constexpr auto kFailureFadeInDuration = crl::time(300);
5958

6059
[[nodiscard]] QString FormatPercent(int permille) {
6160
const auto rounded = (permille + 5) / 10;

Telegram/SourceFiles/calls/group/calls_group_rtmp.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ For license and copyright information please follow this link:
3737
namespace Calls::Group {
3838
namespace {
3939

40-
constexpr auto kPasswordCharAmount = 24;
41-
4240
void StartWithBox(
4341
not_null<Ui::GenericBox*> box,
4442
Fn<void()> done,

Telegram/SourceFiles/data/data_todo_list.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ For license and copyright information please follow this link:
1818

1919
namespace {
2020

21-
constexpr auto kShortPollTimeout = 30 * crl::time(1000);
22-
2321
const TodoListItem *ItemById(const std::vector<TodoListItem> &list, int id) {
2422
const auto i = ranges::find(list, id, &TodoListItem::id);
2523
return (i != end(list)) ? &*i : nullptr;

Telegram/SourceFiles/history/view/history_view_message.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ For license and copyright information please follow this link:
6363
namespace HistoryView {
6464
namespace {
6565

66-
constexpr auto kSummarizeThreshold = 512;
6766
constexpr auto kPlayStatusLimit = 2;
6867
constexpr auto kMaxWidth = (1 << 16) - 1;
6968
constexpr auto kMaxNiceToReadLines = 6;

Telegram/SourceFiles/history/view/history_view_paid_reaction_toast.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ For license and copyright information please follow this link:
3232
namespace HistoryView {
3333
namespace {
3434

35-
constexpr auto kPremiumToastDuration = 5 * crl::time(1000);
36-
3735
[[nodiscard]] not_null<Ui::AbstractButton*> MakeUndoButton(
3836
not_null<QWidget*> parent,
3937
int width,

Telegram/SourceFiles/info/global_media/info_global_media_provider.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ For license and copyright information please follow this link:
3030
namespace Info::GlobalMedia {
3131
namespace {
3232

33-
constexpr auto kPerPage = 50;
3433
constexpr auto kPreloadedScreensCount = 4;
3534
constexpr auto kPreloadedScreensCountFull
3635
= kPreloadedScreensCount + 1 + kPreloadedScreensCount;

Telegram/SourceFiles/media/audio/media_audio_local_cache.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ namespace Media::Audio {
1414
namespace {
1515

1616
constexpr auto kMaxDuration = 3 * crl::time(1000);
17-
constexpr auto kMaxStreams = 2;
1817
constexpr auto kFrameSize = 4096;
1918

2019
[[nodiscard]] QByteArray ConvertAndCut(const QByteArray &bytes) {

Telegram/SourceFiles/settings/business/settings_working_hours.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ namespace Settings {
3535
namespace {
3636

3737
constexpr auto kDay = Data::WorkingInterval::kDay;
38-
constexpr auto kWeek = Data::WorkingInterval::kWeek;
3938
constexpr auto kInNextDayMax = Data::WorkingInterval::kInNextDayMax;
4039

4140
class WorkingHours : public Section<WorkingHours> {

Telegram/SourceFiles/ui/boxes/collectible_info_box.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ For license and copyright information please follow this link:
3030
namespace Ui {
3131
namespace {
3232

33-
constexpr auto kTonMultiplier = uint64(1000000000);
34-
3533
[[nodiscard]] QString FormatEntity(CollectibleType type, QString entity) {
3634
switch (type) {
3735
case CollectibleType::Phone: {

0 commit comments

Comments
 (0)