Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Issue 477002: remove unused argument (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by rafael.espindola
Modified:
11 years, 7 months ago
Reviewers:
Ted Mielczarek, jimb
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

remove unused argument.

Closed. Apparently dead code is a good thing in some contexts.

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : without configure #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/common/dwarf/dwarf2diehandler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/common/dwarf/dwarf2diehandler.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/common/dwarf/dwarf2diehandler_unittest.cc View 1 7 chunks +8 lines, -15 lines 0 comments Download
M src/common/dwarf_cu_to_module.cc View 1 3 chunks +3 lines, -6 lines 0 comments Download
M src/common/dwarf_cu_to_module.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/common/dwarf_cu_to_module_unittest.cc View 1 9 chunks +9 lines, -12 lines 0 comments Download

Messages

Total messages: 7
rafael.espindola
11 years, 7 months ago #1
Ted Mielczarek
Jim should probably take a look at this.
11 years, 7 months ago #2
rafael.espindola
11 years, 7 months ago #3
rafael.espindola
11 years, 7 months ago #4
jimb
I don't think this patch is a good change. Because of the structure of DWARF, ...
11 years, 7 months ago #5
rafael.espindola
Reading the style guide at http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml I found "If some parameters are unused, comment out ...
11 years, 7 months ago #6
jimb
11 years, 7 months ago #7
On 2012/10/05 18:30:37, rafael.espindola wrote:
> Reading the style guide at
> http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml I found
> 
> "If some parameters are unused, comment out the variable name in the function
> definition"
> 
> Would you be ok with patch doing at least that so that it is immediately
obvious
> the argument is dead?

In DwarfCUToModule::NamedScopeHandler::FindChildHandler and
DwarfCUToModule::FindChildHandler? Definitely; that's an improvement. But
dwarf2diehandler.cc and dwarf2reader.cc should be left alone.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted