Cleanup: Do not include unnecessary headers in blaze_util.h.
The header only uses std::string, std::vector, int and char types, and
thus all these headers do not need to be included there.
If necessary, they should be included in the relevant source files
instead.
--
Change-Id: Id1849a0f427016dcf732fe6bfc673e599e8d4b14
MOS_MIGRATED_REVID=92192506
diff --git a/src/main/cpp/blaze_util.h b/src/main/cpp/blaze_util.h
index e36691e..d9b0140 100644
--- a/src/main/cpp/blaze_util.h
+++ b/src/main/cpp/blaze_util.h
@@ -16,22 +16,12 @@
// Blaze client.
//
-#ifndef DEVTOOLS_BLAZE_MAIN_BLAZE_UTIL_H__
-#define DEVTOOLS_BLAZE_MAIN_BLAZE_UTIL_H__
+#ifndef DEVTOOLS_BLAZE_MAIN_BLAZE_UTIL_H_
+#define DEVTOOLS_BLAZE_MAIN_BLAZE_UTIL_H_
-#include <pwd.h>
-#include <stdarg.h>
-#include <sys/file.h>
-#include <sys/ioctl.h>
-#include <sys/socket.h>
-#include <sys/types.h>
#include <string>
#include <vector>
-#include "src/main/cpp/util/exit_code.h"
-#include "src/main/cpp/util/numbers.h"
-#include "src/main/cpp/util/port.h"
-
namespace blaze {
using std::string;
@@ -87,8 +77,9 @@
// If 'arg' matches 'key=value', returns address of 'value'.
// If it matches 'key' alone, returns address of next_arg.
// Returns NULL otherwise.
-const char* GetUnaryOption(const char *arg, const char *next_arg,
- const char *key);
+const char* GetUnaryOption(const char *arg,
+ const char *next_arg,
+ const char *key);
// Returns true iff 'arg' equals 'key'.
// Dies with a syntax error if arg starts with 'key='.
@@ -121,4 +112,5 @@
bool CheckJavaVersionIsAtLeast(string jvm_version, string version_spec);
} // namespace blaze
-#endif // DEVTOOLS_BLAZE_MAIN_BLAZE_UTIL_H__
+
+#endif // DEVTOOLS_BLAZE_MAIN_BLAZE_UTIL_H_