Remove unused TlWriterCCommon field.
This commit is contained in:
parent
6ce85fdc4f
commit
bdc8670646
@ -11,10 +11,7 @@
|
||||
|
||||
int main() {
|
||||
td::tl::tl_config config_td = td::tl::read_tl_config_from_file("auto/tlo/td_api.tlo");
|
||||
td::tl::write_tl_to_file(config_td, "auto/td/telegram/td_tdc_api.h",
|
||||
td::TlWriterCCommon("TdApi", 1, "#include \"td/telegram/td_api.h\"\n"));
|
||||
td::tl::write_tl_to_file(config_td, "auto/td/telegram/td_tdc_api_inner.h",
|
||||
td::TlWriterCCommon("TdApi", -1, "#include \"td/telegram/td_api.h\"\n"));
|
||||
td::tl::write_tl_to_file(config_td, "auto/td/telegram/td_tdc_api.cpp",
|
||||
td::TlWriterCCommon("TdApi", 0, "#include \"td/telegram/td_api.h\"\n"));
|
||||
td::tl::write_tl_to_file(config_td, "auto/td/telegram/td_tdc_api.h", td::TlWriterCCommon("TdApi", 1));
|
||||
td::tl::write_tl_to_file(config_td, "auto/td/telegram/td_tdc_api_inner.h", td::TlWriterCCommon("TdApi", -1));
|
||||
td::tl::write_tl_to_file(config_td, "auto/td/telegram/td_tdc_api.cpp", td::TlWriterCCommon("TdApi", 0));
|
||||
}
|
||||
|
@ -17,11 +17,10 @@
|
||||
namespace td {
|
||||
|
||||
class TlWriterCCommon final : public tl::TL_writer {
|
||||
public:
|
||||
int is_header_;
|
||||
std::string prefix_;
|
||||
TlWriterCCommon(const std::string &name, int is_header, const std::string &prefix = "")
|
||||
: TL_writer(name), is_header_(is_header), prefix_(prefix) {
|
||||
|
||||
public:
|
||||
TlWriterCCommon(const std::string &name, int is_header) : TL_writer(name), is_header_(is_header) {
|
||||
}
|
||||
|
||||
int get_max_arity() const final {
|
||||
@ -1360,4 +1359,5 @@ class TlWriterCCommon final : public tl::TL_writer {
|
||||
return 2;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace td
|
||||
|
Loading…
Reference in New Issue
Block a user