From d40687adb8703fd016c06083a394fa1af19e1eab Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 2 Apr 2021 20:47:46 +0400 Subject: [PATCH] Remove testing code. --- .../SourceFiles/payments/ui/payments_panel.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/Telegram/SourceFiles/payments/ui/payments_panel.cpp b/Telegram/SourceFiles/payments/ui/payments_panel.cpp index 419099c6e..7b4fdfff0 100644 --- a/Telegram/SourceFiles/payments/ui/payments_panel.cpp +++ b/Telegram/SourceFiles/payments/ui/payments_panel.cpp @@ -203,21 +203,7 @@ void Panel::chooseTips(const Invoice &invoice) { FieldConfig{ .type = FieldType::Money, .value = QString::number(now), - .currency = ([&]() -> QString { - static auto counter = 0; - switch (++counter % 9) { - case 0: return "USD"; - case 1: return "EUR"; - case 2: return "IRR"; - case 3: return "BRL"; - case 4: return "ALL"; - case 5: return "AZN"; - case 6: return "CHF"; - case 7: return "DKK"; - case 8: return "KZT"; - } - return currency; - })(), // #TODO payments testing + .currency = currency, }); box->setFocusCallback([=] { row->setFocusFast();