RESOLVED FIXED 110107
[Soup] Superfluous HashMap check in SocketStreamHandleSoup::getHandleFromId()
https://bugs.webkit.org/show_bug.cgi?id=110107
Summary [Soup] Superfluous HashMap check in SocketStreamHandleSoup::getHandleFromId()
Chris Dumez
Reported 2013-02-18 05:47:52 PST
SocketStreamHandleSoup::getHandleFromId() currently does the following: static HashMap<void*, SocketStreamHandle*> gActiveHandles; static SocketStreamHandle* getHandleFromId(void* id) { if (!gActiveHandles.contains(id)) return 0; return gActiveHandles.get(id); } The gActiveHandles.contains() checks is superfluous as gActiveHandles.get() will already return 0 if the key cannot be found.
Attachments
Patch (1.68 KB, patch)
2013-02-18 05:52 PST, Chris Dumez
no flags
Chris Dumez
Comment 1 2013-02-18 05:52:00 PST
WebKit Review Bot
Comment 2 2013-02-18 09:21:12 PST
Comment on attachment 188864 [details] Patch Clearing flags on attachment: 188864 Committed r143233: <http://trac.webkit.org/changeset/143233>
WebKit Review Bot
Comment 3 2013-02-18 09:21:16 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.