Skip to content

Commit

Permalink
GpuChannel::OnDestroy is dead code
Browse files Browse the repository at this point in the history
BUG=none

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

Cr-Commit-Position: refs/heads/master@{#378538}
  • Loading branch information
fsamuel authored and Commit bot committed Mar 1, 2016
1 parent 72feb1c commit 8e58132
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions content/common/gpu/gpu_channel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -742,11 +742,6 @@ void GpuChannel::RemoveRoute(int32_t route_id) {
RemoveRouteFromStream(route_id);
}

void GpuChannel::OnDestroy() {
TRACE_EVENT0("gpu", "GpuChannel::OnDestroy");
gpu_channel_manager_->RemoveChannel(client_id_);
}

bool GpuChannel::OnControlMessageReceived(const IPC::Message& msg) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(GpuChannel, msg)
Expand Down
2 changes: 0 additions & 2 deletions content/common/gpu/gpu_channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ class CONTENT_EXPORT GpuChannel
base::ScopedPtrHashMap<int32_t, scoped_ptr<GpuCommandBufferStub>> stubs_;

private:
void OnDestroy();

bool OnControlMessageReceived(const IPC::Message& msg);

void HandleMessage(const scoped_refptr<GpuChannelMessageQueue>& queue);
Expand Down

0 comments on commit 8e58132

Please sign in to comment.