Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Issue 34273002: Remove UnusedParam.h (Closed)

Created:
7 years, 2 months ago by lgombos
Modified:
7 years ago
CC:
blink-reviews, shans, webcomponents-bugzilla_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, apavlov+blink_chromium.org, adamk+blink_chromium.org, pdr, loislo+blink_chromium.org, Steve Block, dino_apple.com, jamesr, Nate Chapin, alancutter (OOO until 2018), dstockwell, dsinclair, alecflett, Timothy Loh, danakj, marja+watch_chromium.org, dglazkov+blink, Rik, jchaffraix+rendering, pdr., Eric Willigers, kenneth.christiansen, nessy, rjwright, zoltan1, feature-media-reviews_chromium.org, darktears, kojih, vcarbune.chromium, jsbell, jsbell+bindings_chromium.org, leviw+renderwatch, blink-layers+watch_chromium.org, Mike Lawther (Google), f(malita), chromiumbugtracker_adobe.com, dgrogan, Stephen Chennney, Nils Barth (inactive)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Remove UnusedParam.h as most of its use is not not needed. Chromium and Blink sets -Wno-unused-parameter intentionally, so no need to silence related warnings using the UNUSED_PARAM macro. Introduce ALLOW_UNUSED for Blink to mark local variables that might be unused to silence -Wunused-variable. The same macro exists on the chromium side with the same definition. Replace UNUSED_PARAM with the newly introduced ALLOW_UNUSED where needed. TBR=dglazkov@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163467

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Remove UnusedParam.h #

Patch Set 4 : Remove unused variables from signatures #

Total comments: 1

Patch Set 5 : Remove unnecessary ALLOW_UNUSED from the binding generator #

Total comments: 1

Patch Set 6 : Fix nit in bindings/templates/interface.cpp #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -352 lines) Patch
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 4 5 6 3 chunks +2 lines, -9 lines 0 comments Download
M Source/bindings/scripts/unstable/v8_interface.py View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/templates/interface.cpp View 1 2 3 4 5 6 3 chunks +3 lines, -8 lines 0 comments Download
M Source/bindings/tests/results/V8SupportTestInterface.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestCustomAccessors.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestEvent.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestException.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestExtendedEvent.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceCheckSecurity.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceConstructor.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceDoNotCheckConstants.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEmpty.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceImplementedAs.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfacePython.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfacePython2.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestNamedConstructor.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestNode.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 4 5 6 3 chunks +2 lines, -8 lines 0 comments Download
M Source/bindings/tests/results/V8TestObjectPython.cpp View 1 2 3 4 5 6 3 chunks +2 lines, -8 lines 0 comments Download
M Source/bindings/tests/results/V8TestOverloadedConstructors.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestSerializedScriptValueInterface.cpp View 1 2 3 4 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestTypedefs.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/v8/V8GCController.cpp View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/css/MediaQueryEvaluator.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/css/SiblingTraversalStrategies.h View 1 2 9 chunks +0 lines, -17 lines 0 comments Download
M Source/core/css/resolver/FilterOperationResolver.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/Node.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/shadow/ComposedTreeWalker.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/HTMLPlugInElement.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/html/shadow/MediaControlElements.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/html/track/InbandTextTrack.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/loader/PingLoader.cpp View 1 2 4 chunks +3 lines, -7 lines 0 comments Download
M Source/core/page/ChromeClient.h View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/platform/graphics/filters/custom/ValidatedCustomFilterOperation.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/RenderFlowThread.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/RenderImage.cpp View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/RenderTheme.cpp View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderTreeAsText.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/RenderView.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceGradient.cpp View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceMasker.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGText.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/rendering/svg/SVGInlineTextBox.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/rendering/svg/SVGRenderSupport.cpp View 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M Source/core/workers/WorkerGlobalScope.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/workers/WorkerScriptLoader.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/xml/parser/XMLDocumentParser.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/webdatabase/DatabaseManager.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/DatabaseServer.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/webdatabase/DatabaseThread.cpp View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M Source/platform/TraceEvent.h View 1 2 3 2 chunks +16 lines, -17 lines 0 comments Download
M Source/platform/fonts/Font.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/platform/fonts/GlyphBuffer.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/platform/fonts/SimpleFontData.h View 1 2 3 2 chunks +1 line, -6 lines 0 comments Download
M Source/platform/fonts/WidthIterator.cpp View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M Source/platform/fonts/harfbuzz/FontPlatformDataHarfBuzz.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M Source/platform/fonts/mac/SimpleFontDataMac.mm View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/platform/graphics/GraphicsContext.cpp View 1 2 4 1 chunk +0 lines, -2 lines 0 comments Download
M Source/platform/graphics/filters/custom/CustomFilterMeshGenerator.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M Source/platform/image-decoders/png/PNGImageDecoder.cpp View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M Source/platform/mac/ScrollAnimatorMac.mm View 1 2 7 chunks +0 lines, -10 lines 0 comments Download
M Source/platform/mac/WebFontCache.mm View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/platform/scroll/ScrollAnimator.h View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M Source/platform/scroll/ScrollAnimator.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M Source/platform/scroll/ScrollbarThemeMacCommon.mm View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/platform/text/TextBreakIteratorICU.cpp View 1 2 3 1 chunk +1 line, -6 lines 0 comments Download
M Source/web/WebColorName.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/WebKit.cpp View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M Source/web/WebPagePopupImpl.cpp View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/wtf/Compiler.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M Source/wtf/FastMalloc.cpp View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M Source/wtf/TCSystemAlloc.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/wtf/ThreadingPthreads.cpp View 1 2 3 chunks +1 line, -5 lines 0 comments Download
M Source/wtf/ThreadingWin.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
D Source/wtf/UnusedParam.h View 1 2 1 chunk +0 lines, -26 lines 0 comments Download
M Source/wtf/Vector.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/wtf/dtoa/cached-powers.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M Source/wtf/dtoa/fixed-dtoa.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M Source/wtf/wtf.gypi View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
lgombos
This CL includes "UnusedParam.h" where UNUSED_PARAM is used (and removes it where it does not). ...
7 years, 2 months ago (2013-10-22 19:36:17 UTC) #1
abarth-chromium
I don't think we need UNUSED_PARAM anymore. We don't have that warning turned on.
7 years, 2 months ago (2013-10-22 19:48:30 UTC) #2
lgombos
On 2013/10/22 19:48:30, abarth wrote: > I don't think we need UNUSED_PARAM anymore. We don't ...
7 years, 2 months ago (2013-10-23 20:46:39 UTC) #3
abarth-chromium
On 2013/10/23 20:46:39, lgombos wrote: > On 2013/10/22 19:48:30, abarth wrote: > > I don't ...
7 years, 2 months ago (2013-10-24 14:08:25 UTC) #4
Inactive
On 2013/10/24 14:08:25, abarth wrote: > On 2013/10/23 20:46:39, lgombos wrote: > > On 2013/10/22 ...
7 years, 2 months ago (2013-10-24 14:10:41 UTC) #5
Inactive
On 2013/10/24 14:10:41, Chris Dumez wrote: > On 2013/10/24 14:08:25, abarth wrote: > > On ...
7 years, 2 months ago (2013-10-24 14:12:24 UTC) #6
abarth-chromium
On 2013/10/24 14:12:24, Chris Dumez wrote: > Is it worth asking on Blink-dev what people ...
7 years, 2 months ago (2013-10-24 14:38:08 UTC) #7
lgombos
On 2013/10/24 14:38:08, abarth wrote: > On 2013/10/24 14:12:24, Chris Dumez wrote: > > Is ...
7 years ago (2013-12-02 04:37:41 UTC) #8
lgombos
Rebased and putting it up for review again.
7 years ago (2013-12-02 06:21:00 UTC) #9
Inactive
On 2013/12/02 06:21:00, lgombos wrote: > Rebased and putting it up for review again. It ...
7 years ago (2013-12-05 19:30:52 UTC) #10
Nils Barth (inactive)
On 2013/12/05 19:30:52, Chris Dumez wrote: > On 2013/12/02 06:21:00, lgombos wrote: > > Rebased ...
7 years ago (2013-12-06 01:52:27 UTC) #11
Inactive
On 2013/12/06 01:52:27, Nils Barth wrote: > On 2013/12/05 19:30:52, Chris Dumez wrote: > > ...
7 years ago (2013-12-06 02:25:41 UTC) #12
lgombos
Nico, what do you think ? Should we continue to maintain a separate UnusedParam.h or ...
7 years ago (2013-12-06 19:35:01 UTC) #13
Nico
I thought this macro was for -Wunused-param (which we don't use) not -Wunused-variable?
7 years ago (2013-12-06 19:40:51 UTC) #14
lgombos
On 2013/12/06 19:40:51, Nico wrote: > I thought this macro was for -Wunused-param (which we ...
7 years ago (2013-12-06 20:10:00 UTC) #15
Nico
On Fri, Dec 6, 2013 at 12:10 PM, <l.gombos@samsung.com> wrote: > On 2013/12/06 19:40:51, Nico ...
7 years ago (2013-12-06 20:19:32 UTC) #16
lgombos
On 2013/12/06 20:19:32, Nico wrote: > ... the majority if uses seems to be > ...
7 years ago (2013-12-06 20:48:05 UTC) #17
lgombos
Remove UnusedParam.h. Nico, what do you think ?
7 years ago (2013-12-08 16:00:51 UTC) #18
Nico
Most of the changes in core look good. For the bindings stuff, is it possible ...
7 years ago (2013-12-08 20:21:32 UTC) #19
Inactive
lgtm for bindings/. BTW, I'm not 100% sure it is worth trying to tweak the ...
7 years ago (2013-12-09 15:24:46 UTC) #20
haraken
On 2013/12/09 15:24:46, Chris Dumez wrote: > lgtm for bindings/. > > BTW, I'm not ...
7 years ago (2013-12-09 15:32:16 UTC) #21
lgombos
On 2013/12/08 20:21:32, Nico wrote: Thanks for all the reviews. I addressed all the feedback ...
7 years ago (2013-12-09 16:39:59 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/l.gombos@samsung.com/34273002/570001
7 years ago (2013-12-09 16:40:27 UTC) #23
commit-bot: I haz the power
Failed to apply patch for Source/bindings/scripts/code_generator_v8.pm: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years ago (2013-12-09 16:40:59 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/l.gombos@samsung.com/34273002/590001
7 years ago (2013-12-09 19:19:12 UTC) #25
commit-bot: I haz the power
7 years ago (2013-12-09 23:36:49 UTC) #26
Message was sent while issue was closed.
Change committed as 163467

Powered by Google App Engine
This is Rietveld 408576698