Remove some unused macros and functions.

This commit is contained in:
Lei Zhang 2016-08-20 11:12:57 -04:00 committed by Lei Zhang
parent f33aacd165
commit 6f13c73229
2 changed files with 0 additions and 26 deletions

View 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

View File

@ -33,20 +33,6 @@
#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_