Commit 5e37bbf9 authored by Adam Cozzette's avatar Adam Cozzette

Removed unnecessary includes from stubs/common.h

parent c7352b39
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <string> #include <string>
#include <google/protobuf/compiler/code_generator.h> #include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/stubs/mutex.h>
#include <google/protobuf/port_def.inc> #include <google/protobuf/port_def.inc>
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#include <string.h> #include <string.h>
#include <algorithm> #include <algorithm>
#include <google/protobuf/stubs/logging.h>
namespace google { namespace google {
namespace protobuf { namespace protobuf {
namespace strings { namespace strings {
......
...@@ -31,11 +31,7 @@ ...@@ -31,11 +31,7 @@
// Author: kenton@google.com (Kenton Varda) // Author: kenton@google.com (Kenton Varda)
#include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/stubs/status.h>
#include <google/protobuf/stubs/stringpiece.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/int128.h>
#include <errno.h> #include <errno.h>
#include <sstream> #include <sstream>
#include <stdio.h> #include <stdio.h>
...@@ -54,6 +50,15 @@ ...@@ -54,6 +50,15 @@
#include <android/log.h> #include <android/log.h>
#endif #endif
#include <google/protobuf/stubs/callback.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/mutex.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/stubs/status.h>
#include <google/protobuf/stubs/stringpiece.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/int128.h>
#include <google/protobuf/port_def.inc> #include <google/protobuf/port_def.inc>
namespace google { namespace google {
......
...@@ -47,11 +47,6 @@ ...@@ -47,11 +47,6 @@
#include <google/protobuf/stubs/macros.h> #include <google/protobuf/stubs/macros.h>
#include <google/protobuf/stubs/platform_macros.h> #include <google/protobuf/stubs/platform_macros.h>
// TODO(liujisi): Remove the following includes after the include clean-up.
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/mutex.h>
#include <google/protobuf/stubs/callback.h>
#ifndef PROTOBUF_USE_EXCEPTIONS #ifndef PROTOBUF_USE_EXCEPTIONS
#if defined(_MSC_VER) && defined(_CPPUNWIND) #if defined(_MSC_VER) && defined(_CPPUNWIND)
#define PROTOBUF_USE_EXCEPTIONS 1 #define PROTOBUF_USE_EXCEPTIONS 1
......
...@@ -31,8 +31,10 @@ ...@@ -31,8 +31,10 @@
// Author: kenton@google.com (Kenton Varda) // Author: kenton@google.com (Kenton Varda)
#include <vector> #include <vector>
#include <google/protobuf/stubs/callback.h>
#include <google/protobuf/stubs/casts.h> #include <google/protobuf/stubs/casts.h>
#include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/strutil.h> #include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/substitute.h> #include <google/protobuf/stubs/substitute.h>
......
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
#include <ostream> // NOLINT(readability/streams) #include <ostream> // NOLINT(readability/streams)
#include <sstream> #include <sstream>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/port_def.inc> #include <google/protobuf/port_def.inc>
namespace google { namespace google {
......
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
#include <google/protobuf/stubs/statusor.h> #include <google/protobuf/stubs/statusor.h>
#include <google/protobuf/stubs/logging.h>
namespace google { namespace google {
namespace protobuf { namespace protobuf {
namespace util { namespace util {
......
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
#include <string> #include <string>
#include <ostream> #include <ostream>
#include <google/protobuf/stubs/logging.h>
namespace google { namespace google {
namespace protobuf { namespace protobuf {
std::ostream& operator<<(std::ostream& o, StringPiece piece) { std::ostream& operator<<(std::ostream& o, StringPiece piece) {
......
...@@ -36,7 +36,9 @@ ...@@ -36,7 +36,9 @@
#include <stdarg.h> // For va_list and related operations #include <stdarg.h> // For va_list and related operations
#include <stdio.h> // MSVC requires this for _vsnprintf #include <stdio.h> // MSVC requires this for _vsnprintf
#include <vector> #include <vector>
#include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
namespace google { namespace google {
namespace protobuf { namespace protobuf {
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <iterator> #include <iterator>
#include <limits> #include <limits>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/stl_util.h> #include <google/protobuf/stubs/stl_util.h>
#ifdef _WIN32 #ifdef _WIN32
......
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
// Author: kenton@google.com (Kenton Varda) // Author: kenton@google.com (Kenton Varda)
#include <google/protobuf/stubs/substitute.h> #include <google/protobuf/stubs/substitute.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/strutil.h> #include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/stl_util.h> #include <google/protobuf/stubs/stl_util.h>
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
#include <errno.h> #include <errno.h>
#include <google/protobuf/stubs/io_win32.h> #include <google/protobuf/stubs/io_win32.h>
#include <google/protobuf/stubs/logging.h>
namespace google { namespace google {
namespace protobuf { namespace protobuf {
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <map> #include <map>
#include <vector> #include <vector>
#include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <gmock/gmock.h> #include <gmock/gmock.h>
// Disable death tests if we use exceptions in CHECK(). // Disable death tests if we use exceptions in CHECK().
#if !PROTOBUF_USE_EXCEPTIONS && defined(GTEST_HAS_DEATH_TEST) && \ #if !PROTOBUF_USE_EXCEPTIONS && defined(GTEST_HAS_DEATH_TEST) && \
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <string> #include <string>
#include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/stringpiece.h> #include <google/protobuf/stubs/stringpiece.h>
#include <google/protobuf/stubs/statusor.h> #include <google/protobuf/stubs/statusor.h>
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <functional> #include <functional>
#include <stack> #include <stack>
#include <google/protobuf/stubs/callback.h>
#include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/stringpiece.h> #include <google/protobuf/stubs/stringpiece.h>
#include <google/protobuf/stubs/status.h> #include <google/protobuf/stubs/status.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment