Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1557)

Unified Diff: third_party/WebKit/Source/platform/wtf/PrintStream.h

Issue 2872273004: Remove dead macros (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698