cleanup: ThreadLocalState::run_loop_ is never used, so remove it.

WorkerTaskRunner manages and uses the WebWorkerRunLoops in a map in |loop_map_|,
and |run_loop_| in ThreadLocalState remain unused. So remove it.

BUG=none
R=avi@chromium.org

Review URL: https://codereview.chromium.org/880213002

Cr-Commit-Position: refs/heads/master@{#313519}
parent ff2a50a4
......@@ -30,11 +30,8 @@ class RunClosureTask : public WebWorkerRunLoop::Task {
} // namespace
struct WorkerTaskRunner::ThreadLocalState {
ThreadLocalState(int id, const WebWorkerRunLoop& loop)
: id_(id), run_loop_(loop) {
}
explicit ThreadLocalState(int id) : id_(id) {}
int id_;
WebWorkerRunLoop run_loop_;
ObserverList<WorkerTaskRunner::Observer> stop_observers_;
};
......@@ -90,7 +87,7 @@ WorkerTaskRunner::~WorkerTaskRunner() {
void WorkerTaskRunner::OnWorkerRunLoopStarted(const WebWorkerRunLoop& loop) {
DCHECK(!current_tls_.Get());
int id = id_sequence_.GetNext();
current_tls_.Set(new ThreadLocalState(id, loop));
current_tls_.Set(new ThreadLocalState(id));
base::AutoLock locker_(loop_map_lock_);
loop_map_[id] = loop;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment