From 28b5cf1c33df847d667b8974ba07c4157a49b48a Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Mon, 6 Feb 2012 16:26:21 -0800 Subject: [PATCH] Delete dead code. This is part of a series of changes to improve input system pipelining. Bug: 5963420 Change-Id: I9f8b93f6a25ddd872f993366b57bab404c93bede --- services/input/InputDispatcher.cpp | 11 ----------- services/input/InputDispatcher.h | 4 ---- 2 files changed, 15 deletions(-) diff --git a/services/input/InputDispatcher.cpp b/services/input/InputDispatcher.cpp index d923ec1c20711..436831f38d9fa 100644 --- a/services/input/InputDispatcher.cpp +++ b/services/input/InputDispatcher.cpp @@ -3965,17 +3965,6 @@ const char* InputDispatcher::Connection::getStatusLabel() const { } } -InputDispatcher::DispatchEntry* InputDispatcher::Connection::findQueuedDispatchEntryForEvent( - const EventEntry* eventEntry) const { - for (DispatchEntry* dispatchEntry = outboundQueue.tail; dispatchEntry; - dispatchEntry = dispatchEntry->prev) { - if (dispatchEntry->eventEntry == eventEntry) { - return dispatchEntry; - } - } - return NULL; -} - // --- InputDispatcher::CommandEntry --- diff --git a/services/input/InputDispatcher.h b/services/input/InputDispatcher.h index ec7e04e2864a6..d6eab5af019b5 100644 --- a/services/input/InputDispatcher.h +++ b/services/input/InputDispatcher.h @@ -790,10 +790,6 @@ private: inline const char* getInputChannelName() const { return inputChannel->getName().string(); } const char* getStatusLabel() const; - - // Finds a DispatchEntry in the outbound queue associated with the specified event. - // Returns NULL if not found. - DispatchEntry* findQueuedDispatchEntryForEvent(const EventEntry* eventEntry) const; }; enum DropReason {