diff --git a/rtc_base/platform_thread.cc b/rtc_base/platform_thread.cc index 1324069210..872ebb612e 100644 --- a/rtc_base/platform_thread.cc +++ b/rtc_base/platform_thread.cc @@ -239,12 +239,8 @@ bool PlatformThread::SetPriority(ThreadPriority priority) { // TODO(tommi): Switch to the same mechanism as Chromium uses for changing // thread priorities. return true; -#else -#ifdef WEBRTC_THREAD_RR - const int policy = SCHED_RR; #else const int policy = SCHED_FIFO; -#endif const int min_prio = sched_get_priority_min(policy); const int max_prio = sched_get_priority_max(policy); if (min_prio == -1 || max_prio == -1) { diff --git a/system_wrappers/BUILD.gn b/system_wrappers/BUILD.gn index ffd7a78e49..ee24c8bf18 100644 --- a/system_wrappers/BUILD.gn +++ b/system_wrappers/BUILD.gn @@ -42,8 +42,6 @@ rtc_static_library("system_wrappers") { ] if (is_android) { - defines += [ "WEBRTC_THREAD_RR" ] - if (build_with_mozilla) { include_dirs = [ "/config/external/nspr", @@ -58,8 +56,6 @@ rtc_static_library("system_wrappers") { } if (is_linux) { - defines += [ "WEBRTC_THREAD_RR" ] - if (!build_with_chromium) { deps += [ ":cpu_features_linux" ] } @@ -67,10 +63,6 @@ rtc_static_library("system_wrappers") { libs += [ "rt" ] } - if (is_ios || is_mac) { - defines += [ "WEBRTC_THREAD_RR" ] - } - if (is_win) { libs += [ "winmm.lib" ]