Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29333441: Noissue - Change 'CPluginFilter::ShouldBlock()' to local function (Closed)

Created:
Jan. 14, 2016, 2:29 p.m. by Eric
Modified:
Jan. 20, 2016, 2:56 p.m.
Reviewers:
sergei, Oleksandr
CC:
Felix Dahlke
Visibility:
Public.

Description

Noissue - Change 'CPluginFilter::ShouldBlock()' to local function 'CPluginFilter::ShouldBlock' was not using any member variables and was called in only a single place. Moved the function to its point of use. Removed 'CAdblockPlusClient::m_filter'. Its only use was to call 'ShouldBlock()'. Inlined the constructor, now with empty body.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -50 lines) Patch
M src/plugin/AdblockPlusClient.h View 2 chunks +1 line, -3 lines 0 comments Download
M src/plugin/AdblockPlusClient.cpp View 3 chunks +37 lines, -6 lines 0 comments Download
M src/plugin/PluginFilter.h View 1 chunk +0 lines, -9 lines 0 comments Download
M src/plugin/PluginFilter.cpp View 1 chunk +0 lines, -32 lines 0 comments Download

Messages

Total messages: 3
Eric
This is a simple refactoring change set. It would certainly be possible to more thoroughly ...
Jan. 14, 2016, 2:32 p.m. (2016-01-14 14:32:15 UTC) #1
sergei
LGTM
Jan. 15, 2016, 8:10 a.m. (2016-01-15 08:10:51 UTC) #2
Oleksandr
Jan. 20, 2016, 11:04 a.m. (2016-01-20 11:04:05 UTC) #3
LGTM

Powered by Google App Engine
This is Rietveld