Clean up unused variables in places

RESOLVED WONTFIX

Status

()

RESOLVED WONTFIX
10 years ago
9 years ago

People

(Reporter: Swatinem, Assigned: Swatinem)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

10 years ago
Created attachment 337757 [details] [diff] [review]
patch

Vars only used in debug builds are wrapped in #ifdefs
Who is the right peer for review here?
Comment on attachment 337757 [details] [diff] [review]
patch

Ugh - not sure I like the look of that new code.  Also, I think we might want to treat those a bit more fatally...

dietrich can decide though
Attachment #337757 - Flags: review?(dietrich)

Updated

10 years ago
Blocks: 454709
Attachment #337757 - Flags: review?(dietrich) → review-
Comment on attachment 337757 [details] [diff] [review]
patch

Thanks for thinking about this Arpad. However, this pattern is persistent throughout the Mozilla codebase, and your approach makes the code very difficult to read. I think a better approach would be a more comprehensive one, that addresses this issue throughout the codebase, via a preprocessor of some kind, that removes these for release builds at compile-time.
WONTFIXing this. if you're interested in a broader approach, please file a new bug.

(In reply to comment #1)
> Also, I think we might want
> to treat those a bit more fatally...

Agreed, for some of those, clearly corruption or other mangling has happened, and we should bubble up to a backup+recovery scenario.
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → WONTFIX
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.