Skip to content

Commit

Permalink
Remove some unused macros and functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
antiagainst committed Aug 24, 2016
1 parent f33aacd commit 6f13c73
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
4 changes: 0 additions & 4 deletions source/diagnostic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
22 changes: 0 additions & 22 deletions source/diagnostic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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_

0 comments on commit 6f13c73

Please sign in to comment.