Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: webrtc/rtc_base/task_queue_libevent.cc

Issue 3004873002: Delete static method TaskQueue::IsCurrent. (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/rtc_base/task_queue_gcd.cc ('k') | webrtc/rtc_base/task_queue_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_base/task_queue_libevent.cc
diff --git a/webrtc/rtc_base/task_queue_libevent.cc b/webrtc/rtc_base/task_queue_libevent.cc
index 99b88df363c939c1deace1b142dedb3d9c3b7476..2c60e9ee608330ae3b155d1b05f6749dfb5fd2d4 100644
--- a/webrtc/rtc_base/task_queue_libevent.cc
+++ b/webrtc/rtc_base/task_queue_libevent.cc
@@ -119,7 +119,6 @@ class TaskQueue::Impl : public RefCountInterface {
static TaskQueue* CurrentQueue();
// Used for DCHECKing the current queue.
- static bool IsCurrent(const char* queue_name);
bool IsCurrent() const;
void PostTask(std::unique_ptr<QueuedTask> task);
@@ -337,12 +336,6 @@ TaskQueue* TaskQueue::Impl::CurrentQueue() {
return nullptr;
}
-// static
-bool TaskQueue::Impl::IsCurrent(const char* queue_name) {
- TaskQueue::Impl* current = Current();
- return current && current->thread_.name().compare(queue_name) == 0;
-}
-
bool TaskQueue::Impl::IsCurrent() const {
return IsThreadRefEqual(thread_.GetThreadRef(), CurrentThreadRef());
}
@@ -503,11 +496,6 @@ TaskQueue* TaskQueue::Current() {
}
// Used for DCHECKing the current queue.
-// static
-bool TaskQueue::IsCurrent(const char* queue_name) {
- return TaskQueue::Impl::IsCurrent(queue_name);
-}
-
bool TaskQueue::IsCurrent() const {
return impl_->IsCurrent();
}
« no previous file with comments | « webrtc/rtc_base/task_queue_gcd.cc ('k') | webrtc/rtc_base/task_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698