diff --git a/webrtc/modules/desktop_capture/cropping_window_capturer.cc b/webrtc/modules/desktop_capture/cropping_window_capturer.cc index d2cc0ae2e8..711fe0d1ba 100644 --- a/webrtc/modules/desktop_capture/cropping_window_capturer.cc +++ b/webrtc/modules/desktop_capture/cropping_window_capturer.cc @@ -101,12 +101,8 @@ void CroppingWindowCapturer::OnCaptureResult( } #if !defined(WEBRTC_WIN) -// static -DesktopCapturer* CroppingWindowCapturer::Create( - const DesktopCaptureOptions& options) { - return DesktopCapturer::CreateWindowCapturer(options).release(); -} - +// CroppingWindowCapturer is implemented only for windows. On other platforms +// the regular window capturer is used. // static std::unique_ptr CroppingWindowCapturer::CreateCapturer( const DesktopCaptureOptions& options) { diff --git a/webrtc/modules/desktop_capture/cropping_window_capturer.h b/webrtc/modules/desktop_capture/cropping_window_capturer.h index fd6663e5c6..5b5a41d482 100644 --- a/webrtc/modules/desktop_capture/cropping_window_capturer.h +++ b/webrtc/modules/desktop_capture/cropping_window_capturer.h @@ -24,8 +24,6 @@ namespace webrtc { class CroppingWindowCapturer : public DesktopCapturer, public DesktopCapturer::Callback { public: - // Deprecated, use CreateCapturer() - static DesktopCapturer* Create(const DesktopCaptureOptions& options); static std::unique_ptr CreateCapturer( const DesktopCaptureOptions& options); diff --git a/webrtc/modules/desktop_capture/cropping_window_capturer_win.cc b/webrtc/modules/desktop_capture/cropping_window_capturer_win.cc index 6ba815fc29..4cd9b8c1ee 100644 --- a/webrtc/modules/desktop_capture/cropping_window_capturer_win.cc +++ b/webrtc/modules/desktop_capture/cropping_window_capturer_win.cc @@ -209,12 +209,6 @@ DesktopRect CroppingWindowCapturerWin::GetWindowRectInVirtualScreen() { } // namespace -// static -DesktopCapturer* CroppingWindowCapturer::Create( - const DesktopCaptureOptions& options) { - return new CroppingWindowCapturerWin(options); -} - // static std::unique_ptr CroppingWindowCapturer::CreateCapturer( const DesktopCaptureOptions& options) {