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

Issue 4899473029332992: Noissue - Remove dead code (Closed)

Created:
March 17, 2015, 2:35 p.m. by Eric
Modified:
May 27, 2015, 12:34 p.m.
Reviewers:
sergei, Oleksandr
CC:
Felix Dahlke
Visibility:
Public.

Description

Noissue - Remove dead code Remove BuildVariant.h and PluginClient.h. Move their (very few) definitions into the (just as few) places they were used. Adjust #include directives as needed. In addition, remove a number of unnecessary #include directives throughout the plugin. Remove DLL entry point functions 'OnInstall' and 'OnUpdate'. Remove function 'InitPlugin' that each of them called. Remove suppression of warning 4996 from PluginStdAfx.h; the compiler does not emit this warning on our code any longer. Move declaration of '_Module' out of PluginStdAfx.h and into PluginClass.cpp, which was the only file that required it. Move 'UnescapeUrl' out of PluginClientBase.* and into PluginUtil.*.

Patch Set 1 #

Total comments: 15

Patch Set 2 : remove more #include directives #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -303 lines) Patch
M adblockplus.gyp View 1 3 chunks +6 lines, -2 lines 0 comments Download
M src/plugin/AdblockPlus.def View 1 chunk +5 lines, -7 lines 0 comments Download
M src/plugin/AdblockPlusClient.h View 2 chunks +2 lines, -3 lines 0 comments Download
M src/plugin/AdblockPlusClient.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M src/plugin/AdblockPlusDomTraverser.cpp View 1 1 chunk +2 lines, -4 lines 0 comments Download
R src/plugin/BuildVariant.h View 1 chunk +0 lines, -19 lines 0 comments Download
M src/plugin/Plugin.cpp View 1 1 chunk +89 lines, -133 lines 0 comments Download
M src/plugin/PluginClass.cpp View 1 2 chunks +5 lines, -4 lines 0 comments Download
R src/plugin/PluginClient.h View 1 chunk +0 lines, -24 lines 0 comments Download
M src/plugin/PluginClientBase.h View 1 chunk +0 lines, -10 lines 0 comments Download
M src/plugin/PluginClientBase.cpp View 2 chunks +0 lines, -33 lines 0 comments Download
M src/plugin/PluginDebug.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/plugin/PluginDomTraverserBase.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/plugin/PluginFilter.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M src/plugin/PluginMimeFilterClient.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/plugin/PluginMutex.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/plugin/PluginSettings.h View 1 chunk +1 line, -1 line 0 comments Download
M src/plugin/PluginSettings.cpp View 1 2 chunks +1 line, -18 lines 0 comments Download
M src/plugin/PluginStdAfx.h View 3 chunks +0 lines, -10 lines 0 comments Download
M src/plugin/PluginSystem.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/plugin/PluginTabBase.cpp View 1 1 chunk +2 lines, -5 lines 0 comments Download
M src/plugin/PluginUserSettings.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/plugin/PluginUtil.h View 1 chunk +12 lines, -1 line 0 comments Download
M src/plugin/PluginUtil.cpp View 1 2 chunks +32 lines, -7 lines 0 comments Download
M src/plugin/PluginWbPassThrough.cpp View 1 1 chunk +2 lines, -6 lines 0 comments Download

Messages

Total messages: 5
Eric
Small changes overall, but lots of files touched since headers are altered.
March 17, 2015, 2:38 p.m. (2015-03-17 14:38:09 UTC) #1
Oleksandr
Looks good overall. Since we are touching a lot of files, I have checked the ...
March 19, 2015, 4:39 a.m. (2015-03-19 04:39:32 UTC) #2
Eric
New patch set 2 removes more needless #include directives, plus some more dead code as ...
March 20, 2015, 9:09 a.m. (2015-03-20 09:09:45 UTC) #3
sergei
LGTM
March 30, 2015, 10:25 a.m. (2015-03-30 10:25:12 UTC) #4
Oleksandr
May 26, 2015, 11:09 p.m. (2015-05-26 23:09:04 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld