mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 1701778 - Remove unused, statically-initialized WebRTC variable r=dminor,bobowen
Differential Revision: https://phabricator.services.mozilla.com/D110152
This commit is contained in:
parent
3734c86d5b
commit
dcd1847a23
@ -13,9 +13,7 @@
|
||||
namespace rtc {
|
||||
|
||||
#if defined(WEBRTC_WIN)
|
||||
// For use in ThreadWindowsUI callbacks
|
||||
static UINT static_reg_windows_msg =
|
||||
RegisterWindowMessageW(L"WebrtcWindowsUIThreadEvent");
|
||||
|
||||
// timer id used in delayed callbacks
|
||||
static const UINT_PTR kTimerId = 1;
|
||||
static const wchar_t kThisProperty[] = L"ThreadWindowsUIPtr";
|
||||
@ -48,12 +46,6 @@ bool PlatformUIThread::InternalInit() {
|
||||
return !!hwnd_;
|
||||
}
|
||||
|
||||
void PlatformUIThread::RequestCallback() {
|
||||
RTC_DCHECK(hwnd_);
|
||||
RTC_DCHECK(static_reg_windows_msg);
|
||||
PostMessage(hwnd_, static_reg_windows_msg, 0, 0);
|
||||
}
|
||||
|
||||
bool PlatformUIThread::RequestCallbackTimer(unsigned int milliseconds) {
|
||||
CritScope scoped_lock(&cs_);
|
||||
if (!hwnd_) {
|
||||
@ -138,8 +130,7 @@ LRESULT CALLBACK PlatformUIThread::EventWindowProc(HWND hwnd, UINT uMsg,
|
||||
return DefWindowProc(hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
|
||||
if ((uMsg == static_reg_windows_msg && uMsg != WM_NULL) ||
|
||||
(uMsg == WM_TIMER && wParam == kTimerId)) {
|
||||
if (uMsg == WM_TIMER && wParam == kTimerId) {
|
||||
twui->NativeEventCallback();
|
||||
return 0;
|
||||
}
|
||||
|
@ -28,11 +28,6 @@ class PlatformUIThread : public PlatformThread {
|
||||
|
||||
void Stop() override;
|
||||
|
||||
/**
|
||||
* Request an async callback soon.
|
||||
*/
|
||||
void RequestCallback();
|
||||
|
||||
/**
|
||||
* Request a recurring callback.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user