diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 00:19:41 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 00:19:41 +0000 |
commit | feecbf07dbc4b4c94dceb5e0043889126d213f6e (patch) | |
tree | 15551ca1aebccbb74f83b350a6c22da397edd06b | |
parent | 6754aa8e82cecbbcb787fbc458c666f8f75d85e2 (diff) | |
download | chromium_src-feecbf07dbc4b4c94dceb5e0043889126d213f6e.zip chromium_src-feecbf07dbc4b4c94dceb5e0043889126d213f6e.tar.gz chromium_src-feecbf07dbc4b4c94dceb5e0043889126d213f6e.tar.bz2 |
ipc: delete wchar_t IPC trait
We don't send wchars over IPC, so I'm not sure where this came from.
TEST=still compiles
Review URL: http://codereview.chromium.org/3106034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57433 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | ipc/ipc_message_utils.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h index 34e257a..dc1d35f 100644 --- a/ipc/ipc_message_utils.h +++ b/ipc/ipc_message_utils.h @@ -286,30 +286,6 @@ struct ParamTraits<double> { }; template <> -struct ParamTraits<wchar_t> { - typedef wchar_t param_type; - static void Write(Message* m, const param_type& p) { - m->WriteData(reinterpret_cast<const char*>(&p), sizeof(param_type)); - } - static bool Read(const Message* m, void** iter, param_type* r) { - const char *data; - int data_size = 0; - bool result = m->ReadData(iter, &data, &data_size); - if (result && data_size == sizeof(param_type)) { - memcpy(r, data, sizeof(param_type)); - } else { - result = false; - NOTREACHED(); - } - - return result; - } - static void Log(const param_type& p, std::string* l) { - l->append(StringPrintf("%lc", p)); - } -}; - -template <> struct ParamTraits<base::Time> { typedef base::Time param_type; static void Write(Message* m, const param_type& p); |