Bug 913953 - Part u: Remove unused HWND user data functions; r=ehsan

This commit is contained in:
Ms2ger 2013-09-10 09:03:36 +02:00
parent dcd9cd389a
commit 2bce033d67
2 changed files with 0 additions and 15 deletions

View File

@ -258,16 +258,6 @@ WNDPROC SetWindowProc(HWND hwnd, WNDPROC proc) {
return oldwindow_proc;
}
void* SetWindowUserData(HWND hwnd, void* user_data) {
return
reinterpret_cast<void*>(SetWindowLongPtr(hwnd, GWLP_USERDATA,
reinterpret_cast<LONG_PTR>(user_data)));
}
void* GetWindowUserData(HWND hwnd) {
return reinterpret_cast<void*>(GetWindowLongPtr(hwnd, GWLP_USERDATA));
}
// Maps to the WNDPROC for a window that was active before the subclass was
// installed.
static const wchar_t* const kHandlerKey = L"__ORIGINAL_MESSAGE_HANDLER__";

View File

@ -73,11 +73,6 @@ bool Unsubclass(HWND window, WNDPROC subclass_proc);
// SubclassWindow.
WNDPROC GetSuperclassWNDPROC(HWND window);
// Pointer-friendly wrappers around Get/SetWindowLong(..., GWLP_USERDATA, ...)
// Returns the previously set value.
void* SetWindowUserData(HWND hwnd, void* user_data);
void* GetWindowUserData(HWND hwnd);
// Returns true if the shift key is currently pressed.
bool IsShiftPressed();