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

Unified Diff: Source/platform/TraceEvent.h

Issue 34273002: Remove UnusedParam.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years 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 | « Source/modules/webdatabase/DatabaseThread.cpp ('k') | Source/platform/fonts/Font.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/TraceEvent.h
diff --git a/Source/platform/TraceEvent.h b/Source/platform/TraceEvent.h
index a838a36f09390b65704f64d13723d6b434030460..087fd0d16be877771eb6f201a6f9b1f5cebe32d5 100644
--- a/Source/platform/TraceEvent.h
+++ b/Source/platform/TraceEvent.h
@@ -166,7 +166,6 @@
#include "platform/EventTracer.h"
#include "wtf/DynamicAnnotations.h"
-#include "wtf/UnusedParam.h"
#include "wtf/text/CString.h"
// By default, const char* argument values are assumed to have long-lived scope
@@ -693,22 +692,22 @@ public:
{
*flags |= TRACE_EVENT_FLAG_MANGLE_ID;
}
- TraceID(DontMangle id, unsigned char* flags) : m_data(id.data()) { UNUSED_PARAM(flags); }
- TraceID(unsigned long long id, unsigned char* flags) : m_data(id) { UNUSED_PARAM(flags); }
- TraceID(unsigned long id, unsigned char* flags) : m_data(id) { UNUSED_PARAM(flags); }
- TraceID(unsigned id, unsigned char* flags) : m_data(id) { UNUSED_PARAM(flags); }
- TraceID(unsigned short id, unsigned char* flags) : m_data(id) { UNUSED_PARAM(flags); }
- TraceID(unsigned char id, unsigned char* flags) : m_data(id) { UNUSED_PARAM(flags); }
- TraceID(long long id, unsigned char* flags) :
- m_data(static_cast<unsigned long long>(id)) { UNUSED_PARAM(flags); }
- TraceID(long id, unsigned char* flags) :
- m_data(static_cast<unsigned long long>(id)) { UNUSED_PARAM(flags); }
- TraceID(int id, unsigned char* flags) :
- m_data(static_cast<unsigned long long>(id)) { UNUSED_PARAM(flags); }
- TraceID(short id, unsigned char* flags) :
- m_data(static_cast<unsigned long long>(id)) { UNUSED_PARAM(flags); }
- TraceID(signed char id, unsigned char* flags) :
- m_data(static_cast<unsigned long long>(id)) { UNUSED_PARAM(flags); }
+ TraceID(DontMangle id, unsigned char*) : m_data(id.data()) { }
+ TraceID(unsigned long long id, unsigned char*) : m_data(id) { }
+ TraceID(unsigned long id, unsigned char*) : m_data(id) { }
+ TraceID(unsigned id, unsigned char*) : m_data(id) { }
+ TraceID(unsigned short id, unsigned char*) : m_data(id) { }
+ TraceID(unsigned char id, unsigned char*) : m_data(id) { }
+ TraceID(long long id, unsigned char*) :
+ m_data(static_cast<unsigned long long>(id)) { }
+ TraceID(long id, unsigned char*) :
+ m_data(static_cast<unsigned long long>(id)) { }
+ TraceID(int id, unsigned char*) :
+ m_data(static_cast<unsigned long long>(id)) { }
+ TraceID(short id, unsigned char*) :
+ m_data(static_cast<unsigned long long>(id)) { }
+ TraceID(signed char id, unsigned char*) :
+ m_data(static_cast<unsigned long long>(id)) { }
unsigned long long data() const { return m_data; }
« no previous file with comments | « Source/modules/webdatabase/DatabaseThread.cpp ('k') | Source/platform/fonts/Font.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698