From 2d8c3f01ace7e36a9ee7d94a02cf86b9d1dbc100 Mon Sep 17 00:00:00 2001 From: Tommi Date: Fri, 1 Dec 2017 19:02:22 +0100 Subject: [PATCH] Remove unused methods from rtc::Thread. These methods are platform specific and give access to member variables from an unknown thread context (no thread check, no lock). Since these methods aren't being used, it simplifies a minor refactoring project to simply delete them. TBR=brandtr@webrtc.org Bug: webrtc:8596 Change-Id: I85424820d171805dcc3d74317f0e51965402052a Reviewed-on: https://webrtc-review.googlesource.com/28281 Reviewed-by: Tommi Commit-Queue: Tommi Cr-Commit-Position: refs/heads/master@{#20983} --- rtc_base/thread.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/rtc_base/thread.h b/rtc_base/thread.h index bd502ebaf2..3e22c63f2d 100644 --- a/rtc_base/thread.h +++ b/rtc_base/thread.h @@ -202,19 +202,6 @@ class RTC_LOCKABLE Thread : public MessageQueue { // You cannot call Start on non-owned threads. bool IsOwned(); -#if defined(WEBRTC_WIN) - HANDLE GetHandle() const { - return thread_; - } - DWORD GetId() const { - return thread_id_; - } -#elif defined(WEBRTC_POSIX) - pthread_t GetPThread() { - return thread_; - } -#endif - // Expose private method running() for tests. // // DANGER: this is a terrible public API. Most callers that might want to