From 2bccc2cf38624593e1adafefccec7314aa573b0f Mon Sep 17 00:00:00 2001 From: charliea Date: Thu, 5 Nov 2015 05:48:56 -0800 Subject: Kills TraceTicks, which was functionally the same as TimeTicks This was not true until last week's submission of http://crrev.com/1374753004. BUG=541692 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel NO_PRESUBMIT=true Review URL: https://codereview.chromium.org/1424703003 Cr-Commit-Position: refs/heads/master@{#358047} --- ipc/ipc_message_utils.cc | 19 ------------------- ipc/ipc_message_utils.h | 11 ----------- 2 files changed, 30 deletions(-) (limited to 'ipc') diff --git a/ipc/ipc_message_utils.cc b/ipc/ipc_message_utils.cc index 26edc12..8377712 100644 --- a/ipc/ipc_message_utils.cc +++ b/ipc/ipc_message_utils.cc @@ -865,25 +865,6 @@ void ParamTraits::Log(const param_type& p, std::string* l) { ParamTraits::Log(p.ToInternalValue(), l); } -void ParamTraits::Write(Message* m, const param_type& p) { - ParamTraits::Write(m, p.ToInternalValue()); -} - -bool ParamTraits::Read(const Message* m, - base::PickleIterator* iter, - param_type* r) { - int64_t value; - bool ret = ParamTraits::Read(m, iter, &value); - if (ret) - *r = base::TraceTicks::FromInternalValue(value); - - return ret; -} - -void ParamTraits::Log(const param_type& p, std::string* l) { - ParamTraits::Log(p.ToInternalValue(), l); -} - void ParamTraits::Write(Message* m, const param_type& p) { #if defined(OS_WIN) // On Windows marshalling pipe handle is not supported. diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h index 1e2832f..817d752 100644 --- a/ipc/ipc_message_utils.h +++ b/ipc/ipc_message_utils.h @@ -59,7 +59,6 @@ class NullableString16; class Time; class TimeDelta; class TimeTicks; -class TraceTicks; struct FileDescriptor; #if (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_WIN) @@ -585,16 +584,6 @@ struct IPC_EXPORT ParamTraits { }; template <> -struct IPC_EXPORT ParamTraits { - typedef base::TraceTicks param_type; - static void Write(Message* m, const param_type& p); - static bool Read(const Message* m, - base::PickleIterator* iter, - param_type* r); - static void Log(const param_type& p, std::string* l); -}; - -template <> struct ParamTraits> { typedef base::Tuple<> param_type; static void Write(Message* m, const param_type& p) { -- cgit v1.1