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

Issue 5948518908821504: Issue #1158 - removed unnecessary definitions and #ifdef/#else/#endif sections (Closed)

Created:
Aug. 6, 2014, 7:38 p.m. by Eric
Modified:
Oct. 7, 2014, 2:50 p.m.
Visibility:
Public.

Description

Issue #1158 - removed unnecessary definitions and #ifdef/#else/#endif sections Removed definition of PRODUCT_ADBLOCKPLUS as a command-line definition for the compiler and assume that it's always defined instead. When this symbol was defined, so also were SUPPORT_FILTER, SUPPORT_WHITELIST, SUPPORT_DOM_TRAVERSER, and SUPPORT_FRAME_CACHING. Thus also assume these four symbols are always defined. Removed all #ifdef/#else/#endif directives associated with these symbols. Removed the contents of the associated sections as appropriate. Assume SUPPORT_CONFIG is never defined. For this symbol, the only actual code removed was a single static member variable and its initializer. Note that there is no source file PluginConfig.h, as mentioned in some of the removed sections.

Patch Set 1 #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -212 lines) Patch
M adblockplus.gyp View 1 chunk +1 line, -1 line 0 comments Download
M src/plugin/Config.h View 2 chunks +0 lines, -15 lines 1 comment Download
M src/plugin/Plugin.cpp View 1 chunk +0 lines, -6 lines 0 comments Download
M src/plugin/PluginClass.h View 2 chunks +0 lines, -14 lines 3 comments Download
M src/plugin/PluginClass.cpp View 7 chunks +1 line, -27 lines 3 comments Download
M src/plugin/PluginClient.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/plugin/PluginDomTraverser.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/plugin/PluginFilter.cpp View 2 chunks +0 lines, -10 lines 0 comments Download
M src/plugin/PluginSettings.h View 6 chunks +1 line, -22 lines 0 comments Download
M src/plugin/PluginSettings.cpp View 8 chunks +0 lines, -23 lines 0 comments Download
M src/plugin/PluginStdAfx.h View 1 chunk +1 line, -9 lines 1 comment Download
M src/plugin/PluginTab.h View 1 chunk +0 lines, -5 lines 0 comments Download
M src/plugin/PluginTabBase.h View 3 chunks +0 lines, -23 lines 0 comments Download
M src/plugin/PluginTabBase.cpp View 10 chunks +0 lines, -38 lines 3 comments Download
M src/plugin/PluginWbPassThrough.cpp View 4 chunks +3 lines, -11 lines 0 comments Download

Messages

Total messages: 7
Eric
Aug. 6, 2014, 7:43 p.m. (2014-08-06 19:43:27 UTC) #1
Oleksandr
http://codereview.adblockplus.org/5948518908821504/diff/5629499534213120/src/plugin/Config.h File src/plugin/Config.h (left): http://codereview.adblockplus.org/5948518908821504/diff/5629499534213120/src/plugin/Config.h#oldcode124 src/plugin/Config.h:124: #define SUPPORT_DOM_TRAVERSER I would leave the SUPPORT_DOM_TRAVERSER here http://codereview.adblockplus.org/5948518908821504/diff/5629499534213120/src/plugin/PluginTabBase.cpp ...
Aug. 18, 2014, 8:46 p.m. (2014-08-18 20:46:04 UTC) #2
Felix Dahlke
Awesome, LGTM from my side! http://codereview.adblockplus.org/5948518908821504/diff/5629499534213120/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (left): http://codereview.adblockplus.org/5948518908821504/diff/5629499534213120/src/plugin/PluginTabBase.cpp#oldcode55 src/plugin/PluginTabBase.cpp:55: #ifdef SUPPORT_DOM_TRAVERSER IMHO the ...
Sept. 30, 2014, 9:33 a.m. (2014-09-30 09:33:29 UTC) #3
Oleksandr
Some more stuff to remove http://codereview.adblockplus.org/5948518908821504/diff/5629499534213120/src/plugin/PluginClass.cpp File src/plugin/PluginClass.cpp (left): http://codereview.adblockplus.org/5948518908821504/diff/5629499534213120/src/plugin/PluginClass.cpp#oldcode49 src/plugin/PluginClass.cpp:49: std::map<UINT,CString> CPluginClass::s_menuDomains; This line ...
Oct. 2, 2014, 9:24 p.m. (2014-10-02 21:24:02 UTC) #4
Eric
I took all the suggestions and put them up in a separate review so that ...
Oct. 2, 2014, 10:02 p.m. (2014-10-02 22:02:53 UTC) #5
Oleksandr
Yes, LGTM for this On 2014/10/02 22:02:53, Eric wrote: > I took all the suggestions ...
Oct. 3, 2014, 8:15 a.m. (2014-10-03 08:15:36 UTC) #6
sergei
Oct. 6, 2014, 9:35 a.m. (2014-10-06 09:35:54 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld