Skip to content

Commit

Permalink
Remove various unused includes (#9852)
Browse files Browse the repository at this point in the history
These headers pull in STL headers without actually using anything from
the STL.
  • Loading branch information
davidben committed Apr 26, 2022
1 parent 6718fa9 commit 089e091
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 37 deletions.
2 changes: 0 additions & 2 deletions python/google/protobuf/pyext/extension_dict.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
#define PY_SSIZE_T_CLEAN
#include <Python.h>

#include <memory>

#include <google/protobuf/pyext/message.h>

namespace google {
Expand Down
1 change: 0 additions & 1 deletion python/google/protobuf/pyext/map_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <Python.h>

#include <cstdint>
#include <memory>

#include <google/protobuf/descriptor.h>
#include <google/protobuf/message.h>
Expand Down
4 changes: 0 additions & 4 deletions python/google/protobuf/pyext/repeated_composite_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
#define PY_SSIZE_T_CLEAN
#include <Python.h>

#include <memory>
#include <string>
#include <vector>

#include <google/protobuf/pyext/message.h>

namespace google {
Expand Down
2 changes: 0 additions & 2 deletions python/google/protobuf/pyext/repeated_scalar_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
#define PY_SSIZE_T_CLEAN
#include <Python.h>

#include <memory>

#include <google/protobuf/descriptor.h>
#include <google/protobuf/pyext/message.h>

Expand Down
2 changes: 0 additions & 2 deletions src/google/protobuf/compiler/csharp/csharp_enum_field.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_ENUM_FIELD_H__
#define GOOGLE_PROTOBUF_COMPILER_CSHARP_ENUM_FIELD_H__

#include <string>

#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/csharp/csharp_primitive_field.h>

Expand Down
2 changes: 0 additions & 2 deletions src/google/protobuf/compiler/csharp/csharp_map_field.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_MAP_FIELD_H__
#define GOOGLE_PROTOBUF_COMPILER_CSHARP_MAP_FIELD_H__

#include <string>

#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/csharp/csharp_field_base.h>

Expand Down
2 changes: 0 additions & 2 deletions src/google/protobuf/compiler/csharp/csharp_message_field.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_MESSAGE_FIELD_H__
#define GOOGLE_PROTOBUF_COMPILER_CSHARP_MESSAGE_FIELD_H__

#include <string>

#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/csharp/csharp_field_base.h>

Expand Down
2 changes: 0 additions & 2 deletions src/google/protobuf/compiler/csharp/csharp_primitive_field.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_PRIMITIVE_FIELD_H__
#define GOOGLE_PROTOBUF_COMPILER_CSHARP_PRIMITIVE_FIELD_H__

#include <string>

#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/csharp/csharp_field_base.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_REPEATED_ENUM_FIELD_H__
#define GOOGLE_PROTOBUF_COMPILER_CSHARP_REPEATED_ENUM_FIELD_H__

#include <string>

#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/csharp/csharp_field_base.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_REPEATED_MESSAGE_FIELD_H__
#define GOOGLE_PROTOBUF_COMPILER_CSHARP_REPEATED_MESSAGE_FIELD_H__

#include <string>

#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/csharp/csharp_field_base.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_REPEATED_PRIMITIVE_FIELD_H__
#define GOOGLE_PROTOBUF_COMPILER_CSHARP_REPEATED_PRIMITIVE_FIELD_H__

#include <string>

#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/csharp/csharp_field_base.h>

Expand Down
2 changes: 0 additions & 2 deletions src/google/protobuf/compiler/csharp/csharp_wrapper_field.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_WRAPPER_FIELD_H__
#define GOOGLE_PROTOBUF_COMPILER_CSHARP_WRAPPER_FIELD_H__

#include <string>

#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/csharp/csharp_field_base.h>

Expand Down
3 changes: 0 additions & 3 deletions src/google/protobuf/compiler/java/message_lite.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_JAVA_MESSAGE_LITE_H__
#define GOOGLE_PROTOBUF_COMPILER_JAVA_MESSAGE_LITE_H__

#include <map>
#include <string>

#include <google/protobuf/compiler/java/field.h>
#include <google/protobuf/compiler/java/message.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_OBJECTIVEC_PRIMITIVE_FIELD_H__
#define GOOGLE_PROTOBUF_COMPILER_OBJECTIVEC_PRIMITIVE_FIELD_H__

#include <map>
#include <string>
#include <google/protobuf/compiler/objectivec/objectivec_field.h>

namespace google {
Expand Down
3 changes: 0 additions & 3 deletions src/google/protobuf/generated_message_reflection.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
#ifndef GOOGLE_PROTOBUF_GENERATED_MESSAGE_REFLECTION_H__
#define GOOGLE_PROTOBUF_GENERATED_MESSAGE_REFLECTION_H__

#include <string>
#include <vector>

#include <google/protobuf/stubs/casts.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
Expand Down
2 changes: 0 additions & 2 deletions src/google/protobuf/io/zero_copy_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@
#define GOOGLE_PROTOBUF_IO_ZERO_COPY_STREAM_H__


#include <string>

#include <google/protobuf/stubs/common.h>


Expand Down
2 changes: 0 additions & 2 deletions src/google/protobuf/wire_format.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
#define GOOGLE_PROTOBUF_WIRE_FORMAT_H__


#include <string>

#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/stubs/casts.h>
Expand Down

0 comments on commit 089e091

Please sign in to comment.