Commit 2a86e643 authored by cpu@google.com's avatar cpu@google.com

Remove unused IPC deserializer

- It does not look that is a very good idea what it was doing to boot

TEST=no test required


Review URL: http://codereview.chromium.org/100080

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14852 0039d316-1c4b-4281-b951-d872f2087c98
parent c306d4da
......@@ -582,39 +582,6 @@ struct ParamTraits<HWND> {
}
};
template <>
struct ParamTraits<HRGN> {
typedef HRGN param_type;
static void Write(Message* m, const param_type& p) {
int data_size = GetRegionData(p, 0, NULL);
if (data_size) {
char* bytes = new char[data_size];
GetRegionData(p, data_size, reinterpret_cast<LPRGNDATA>(bytes));
m->WriteData(reinterpret_cast<const char*>(bytes), data_size);
delete [] bytes;
} else {
m->WriteData(NULL, 0);
}
}
static bool Read(const Message* m, void** iter, param_type* r) {
bool res = FALSE;
const char *data;
int data_size = 0;
res = m->ReadData(iter, &data, &data_size);
if (data_size) {
*r = ExtCreateRegion(NULL, data_size,
reinterpret_cast<CONST RGNDATA*>(data));
} else {
res = TRUE;
*r = CreateRectRgn(0, 0, 0, 0);
}
return res;
}
static void Log(const param_type& p, std::wstring* l) {
l->append(StringPrintf(L"0x%X", p));
}
};
template <>
struct ParamTraits<HACCEL> {
typedef HACCEL param_type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment