aboutsummaryrefslogtreecommitdiff
path: root/contrib/protoc-bnet/BnetFileGenerator.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-01-13 18:25:52 +0100
committerShauren <shauren.trinity@gmail.com>2023-01-13 18:25:52 +0100
commit68d079e4a32ae525b236f956e8fc88c35eb8e24b (patch)
tree9226a44caa0c6bb0d82f6d74d88b249eeddeb819 /contrib/protoc-bnet/BnetFileGenerator.cpp
parent3f1816d4076a9dfc65adae3109bf504e35f21003 (diff)
Contrib: Adjust protobuf generator for latest include cleaned up output
Diffstat (limited to 'contrib/protoc-bnet/BnetFileGenerator.cpp')
-rw-r--r--contrib/protoc-bnet/BnetFileGenerator.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/protoc-bnet/BnetFileGenerator.cpp b/contrib/protoc-bnet/BnetFileGenerator.cpp
index 8b27621e106..a14ac971da6 100644
--- a/contrib/protoc-bnet/BnetFileGenerator.cpp
+++ b/contrib/protoc-bnet/BnetFileGenerator.cpp
@@ -328,8 +328,7 @@ void BnetFileGenerator::GenerateSource(pb::io::Printer* printer)
"#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION\n"
"#include \"$basename$.pb.h\"\n"
"\n"
- "#include <algorithm>\n" // for swap()
- "#include <utility>\n" // for move()
+ "#include <utility>\n" // for swap() and move()
"\n"
"#include <google/protobuf/stubs/common.h>\n"
"#include <google/protobuf/stubs/once.h>\n"
@@ -354,11 +353,9 @@ void BnetFileGenerator::GenerateSource(pb::io::Printer* printer)
"#include <google/protobuf/wire_format.h>\n");
}
- printer->Print("#include \"Log.h\"\n");
if (file_->service_count() > 0)
{
- printer->Print("#include \"Errors.h\"\n");
printer->Print("#include \"BattlenetRpcErrorCodes.h\"\n");
}