Removed unused Ui::IsCreditsInvoice.

This commit is contained in:
23rd 2024-05-24 20:47:36 +03:00 committed by John Preston
parent dda6b92bec
commit e4e343b871
2 changed files with 0 additions and 8 deletions

View file

@ -288,10 +288,4 @@ void SendCreditsBox(
}
}
bool IsCreditsInvoice(not_null<HistoryItem*> item) {
const auto media = item->media();
const auto invoice = media ? media->invoice() : nullptr;
return invoice && (invoice->currency == "XTR");
}
} // namespace Ui

View file

@ -21,6 +21,4 @@ void SendCreditsBox(
not_null<Ui::GenericBox*> box,
std::shared_ptr<Payments::CreditsFormData> data);
[[nodiscard]] bool IsCreditsInvoice(not_null<HistoryItem*> item);
} // namespace Ui