Closed Bug 1226796 Opened 9 years ago Closed 9 years ago

Remove redundant preprocessor flags in nsContainerFrame.cpp

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: jaws, Assigned: jaws)

Details

Attachments

(1 file, 2 obsolete files)

At the top of nsContainerFrame.cpp,

#ifdef DEBUG
#undef NOISY
#else
#undef NOISY
#endif

Looking at CVS history, this was added as:
https://github.com/ehsan/mozilla-cvs-history/commit/7f1e47459da795d415131632910b99e25f381747
#ifdef NS_DEBUG
#undef NOISY
#else
#undef NOISY
#endif

We can simplify this to just:
#undef NOISY
Attached patch Patch (obsolete) — Splinter Review
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Attachment #8690294 - Flags: review?(jfkthame)
AFAICS there's nothing left that depends on NOISY in that file, so how about simply removing it altogether here?
Attached patch Patch v1.1 (obsolete) — Splinter Review
OK, I removed the #undef NOISY since I don't see any reference to NOISY within nsContainerFrame.cpp either.

I ran through `hg log` of nsContainerFrame.cpp since hg@1 and didn't see any removals or additions to usages of NOISY. I didn't do a check of CVS history.
Attachment #8690294 - Attachment is obsolete: true
Attachment #8690294 - Flags: review?(jfkthame)
Attachment #8690969 - Flags: review?(jfkthame)
Comment on attachment 8690969 [details] [diff] [review]
Patch v1.1

Review of attachment 8690969 [details] [diff] [review]:
-----------------------------------------------------------------

::: layout/generic/nsContainerFrame.cpp
@@ +591,5 @@
>  static bool
>  IsTopLevelWidget(nsIWidget* aWidget)
>  {
>    nsWindowType windowType = aWidget->WindowType();
> +#ifdef XP_WIN

What's up here? Was this change intended to be part of this patch?
Attached patch Patch v1.2Splinter Review
Sorry, that crept through from a different patch I was working on.
Attachment #8690969 - Attachment is obsolete: true
Attachment #8690969 - Flags: review?(jfkthame)
Attachment #8691406 - Flags: review?(jfkthame)
Comment on attachment 8691406 [details] [diff] [review]
Patch v1.2

Review of attachment 8691406 [details] [diff] [review]:
-----------------------------------------------------------------

I suspected as much. :) Thanks for cleaning up.
Attachment #8691406 - Flags: review?(jfkthame) → review+
https://hg.mozilla.org/integration/fx-team/rev/72d69c46d14ce1742ab72425607291c7256de83f
Bug 1226796 - Remove redundant preprocessor flags in nsContainerFrame.cpp. r=jfkthame
https://hg.mozilla.org/mozilla-central/rev/72d69c46d14c
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: