Bug 1701778 - Remove unused, statically-initialized WebRTC variable r=dminor,bobowen

Differential Revision: https://phabricator.services.mozilla.com/D110152
This commit is contained in:
Chris Martin 2021-03-30 13:05:08 +00:00
parent 3734c86d5b
commit dcd1847a23
2 changed files with 2 additions and 16 deletions

View File

@ -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;
}

View File

@ -28,11 +28,6 @@ class PlatformUIThread : public PlatformThread {
void Stop() override;
/**
* Request an async callback soon.
*/
void RequestCallback();
/**
* Request a recurring callback.
*/