From 287467267147123ba1bbba5c93c0721bbb151ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Wed, 9 Jan 2019 16:30:39 +0100 Subject: [PATCH] Delete method VideoCodingModule::SetVideoProtection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: webrtc:8064 Change-Id: I2a6ed11bf1415e4e0d199733f9d9a659afec0fe8 Reviewed-on: https://webrtc-review.googlesource.com/c/116689 Reviewed-by: Erik Språng Commit-Queue: Niels Moller Cr-Commit-Position: refs/heads/master@{#26194} --- modules/video_coding/include/video_coding.h | 12 ------------ modules/video_coding/video_coding_impl.cc | 6 ------ 2 files changed, 18 deletions(-) diff --git a/modules/video_coding/include/video_coding.h b/modules/video_coding/include/video_coding.h index 1eb60d4bb2..cf871a0786 100644 --- a/modules/video_coding/include/video_coding.h +++ b/modules/video_coding/include/video_coding.h @@ -47,18 +47,6 @@ class VideoCodingModule : public Module { // DEPRECATED. static VideoCodingModule* Create(Clock* clock); - // Enable or disable a video protection method. - // - // Input: - // - videoProtection : The method to enable or disable. - // - enable : True if the method should be enabled, false if - // it should be disabled. - // - // Return value : VCM_OK, on success. - // < 0, on error. - virtual int32_t SetVideoProtection(VCMVideoProtection videoProtection, - bool enable) = 0; - /* * Receiver */ diff --git a/modules/video_coding/video_coding_impl.cc b/modules/video_coding/video_coding_impl.cc index 66d1a2aa1b..7600915b72 100644 --- a/modules/video_coding/video_coding_impl.cc +++ b/modules/video_coding/video_coding_impl.cc @@ -60,12 +60,6 @@ class VideoCodingModuleImpl : public VideoCodingModule { void Process() override { receiver_.Process(); } - int32_t SetVideoProtection(VCMVideoProtection videoProtection, - bool enable) override { - // TODO(pbos): Remove enable from receive-side protection modes as well. - return receiver_.SetVideoProtection(videoProtection, enable); - } - int32_t RegisterReceiveCodec(const VideoCodec* receiveCodec, int32_t numberOfCores, bool requireKeyFrame) override {