Index: third_party/WebKit/Source/platform/wtf/PrintStream.h |
diff --git a/third_party/WebKit/Source/platform/wtf/PrintStream.h b/third_party/WebKit/Source/platform/wtf/PrintStream.h |
index 2c459b95d618c424951d357c9c87cfff65362792..2e782ebf0cee4153cb53f6bed8eb7cd8fe1be8c5 100644 |
--- a/third_party/WebKit/Source/platform/wtf/PrintStream.h |
+++ b/third_party/WebKit/Source/platform/wtf/PrintStream.h |
@@ -92,43 +92,8 @@ void PrintInternal(PrintStream& out, const T& value) { |
value.Dump(out); |
} |
-#define MAKE_PRINT_ADAPTOR(Name, Type, function) \ |
- class Name final { \ |
- STACK_ALLOCATED(); \ |
- \ |
- public: \ |
- Name(const Type& value) : value_(value) {} \ |
- void Dump(PrintStream& out) const { function(out, value_); } \ |
- \ |
- private: \ |
- Type value_; \ |
- } |
- |
-#define MAKE_PRINT_METHOD_ADAPTOR(Name, Type, method) \ |
- class Name final { \ |
- STACK_ALLOCATED(); \ |
- \ |
- public: \ |
- Name(const Type& value) : m_value(value) {} \ |
- void dump(PrintStream& out) const { m_value.method(out); } \ |
- \ |
- private: \ |
- const Type& m_value; \ |
- } |
- |
-#define MAKE_PRINT_METHOD(Type, dumpMethod, method) \ |
- MAKE_PRINT_METHOD_ADAPTOR(DumperFor_##method, Type, dumpMethod); \ |
- DumperFor_##method method() const { return DumperFor_##method(*this); } |
- |
-// Use an adaptor-based dumper for characters to avoid situations where |
-// you've "compressed" an integer to a character and it ends up printing |
-// as ASCII when you wanted it to print as a number. |
-void DumpCharacter(PrintStream&, char); |
-MAKE_PRINT_ADAPTOR(CharacterDump, char, DumpCharacter); |
- |
} // namespace WTF |
-using WTF::CharacterDump; |
using WTF::PrintStream; |
#endif // PrintStream_h |