Remove unused class ShippingOption.

This commit is contained in:
levlam 2022-09-22 21:07:01 +03:00
parent fa5dbe4751
commit 63a664ec71
2 changed files with 0 additions and 25 deletions

View File

@ -698,19 +698,6 @@ class GetBankCardInfoQuery final : public Td::ResultHandler {
}
};
bool operator==(const ShippingOption &lhs, const ShippingOption &rhs) {
return lhs.id == rhs.id && lhs.title == rhs.title && lhs.price_parts == rhs.price_parts;
}
bool operator!=(const ShippingOption &lhs, const ShippingOption &rhs) {
return !(lhs == rhs);
}
StringBuilder &operator<<(StringBuilder &string_builder, const ShippingOption &shipping_option) {
return string_builder << "[ShippingOption " << shipping_option.id << " " << shipping_option.title
<< " with price parts " << format::as_array(shipping_option.price_parts) << "]";
}
void answer_shipping_query(Td *td, int64 shipping_query_id,
vector<tl_object_ptr<td_api::shippingOption>> &&shipping_options,
const string &error_message, Promise<Unit> &&promise) {

View File

@ -8,7 +8,6 @@
#include "td/telegram/DialogId.h"
#include "td/telegram/FullMessageId.h"
#include "td/telegram/LabeledPricePart.h"
#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"
@ -22,17 +21,6 @@ namespace td {
class Td;
struct ShippingOption {
string id;
string title;
vector<LabeledPricePart> price_parts;
};
bool operator==(const ShippingOption &lhs, const ShippingOption &rhs);
bool operator!=(const ShippingOption &lhs, const ShippingOption &rhs);
StringBuilder &operator<<(StringBuilder &string_builder, const ShippingOption &shipping_option);
void answer_shipping_query(Td *td, int64 shipping_query_id,
vector<tl_object_ptr<td_api::shippingOption>> &&shipping_options,
const string &error_message, Promise<Unit> &&promise);