Remove some unused macros and functions.
authorLei Zhang <antiagainst@gmail.com>
Sat, 20 Aug 2016 15:12:57 +0000 (11:12 -0400)
committerLei Zhang <antiagainst@google.com>
Wed, 24 Aug 2016 13:34:06 +0000 (09:34 -0400)
source/diagnostic.cpp
source/diagnostic.h

index 61dd325..9da7e38 100644 (file)
@@ -148,8 +148,4 @@ spvResultToString(spv_result_t res) {
   return out;
 }
 
-void message(std::string file, size_t line, std::string name) {
-  std::cout << file << ":" << line << ": " << name << std::endl;
-}
-
 }  // namespace libspirv
index 8dd079b..f7937cb 100644 (file)
 
 #include "spirv-tools/libspirv.h"
 
-/// For debugging purposes only
-/// Prints the string to stdout
-#define MSG(msg)                                        \
-  do {                                                  \
-    libspirv::message(__FILE__, size_t(__LINE__), msg); \
-  } while (0)
-
-/// For debugging purposes only
-/// prints the variable value/location/and name to stdout
-#define SHOW(exp)                                               \
-  do {                                                          \
-    libspirv::message(__FILE__, size_t(__LINE__), #exp, (exp)); \
-  } while (0)
-
 namespace libspirv {
 class diagnostic_helper {
  public:
@@ -117,14 +103,6 @@ class DiagnosticStream {
 
 std::string spvResultToString(spv_result_t res);
 
-/// Helper functions for printing debugging information
-void message(std::string file, size_t line, std::string name);
-
-template <typename T>
-void message(std::string file, size_t line, std::string name, T val) {
-  std::cout << file << ":" << line << ": " << name << " " << val << std::endl;
-}
-
 }  // namespace libspirv
 
 #endif  // LIBSPIRV_DIAGNOSTIC_H_