Closed Bug 186938 Opened 22 years ago Closed 22 years ago

#if 0 code in nsBlender.cpp

Categories

(Core Graveyard :: GFX, defect, P2)

x86
Windows 98
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.3beta

People

(Reporter: Biesinger, Assigned: Biesinger)

Details

(Whiteboard: [whitebox])

Attachments

(1 file)

nsBlender.cpp has an entire function in an #if 0 block (well only the function body is in #if 0), and the only caller also in an #if 0 block The function is Do8Blend, see http://lxr.mozilla.org/seamonkey/search?string=Do8Blend and follow the links to nsBlender.cpp It looks like the if 0 was introduced by pavlov in bug 78690... When this code is removed, the forward declaration of IL_ColorSpace in nsBlender.h can also go.
oh, as a matter of fact, even more code can be removed. I'll attach a patch soon.
Attachment #110245 - Flags: review?(kmcclusk)
Attachment #110245 - Flags: superreview?(roc+moz)
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.3beta
Comment on attachment 110245 [details] [diff] [review] patch r+sr=roc+moz This code doesn't work anymore anyway. If we need to get it back later we can recover it from CVS history.
Attachment #110245 - Flags: superreview?(roc+moz)
Attachment #110245 - Flags: superreview+
Attachment #110245 - Flags: review?(kmcclusk)
Attachment #110245 - Flags: review+
ok, the patch is checked in tinderbox shows 2.5 KB Codesize reduction :) Now... the aBlendQuality argument seems to be completely ignored by the Do*Blend functions. roc, do you think we should keep it anyway, or should I remove it? leaving the bug open for that issue.
Whiteboard: [whitebox]
It's not worth playing with nsIBlender at this time. nsIBlender should be removed, and its functionality moved to nsIRenderingContext or possibly nsIDrawingSurface.
ok then, marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Robert O'Callahan wrote: > It's not worth playing with nsIBlender at this time. nsIBlender should be > removed, and its functionality moved to nsIRenderingContext or possibly > nsIDrawingSurface. What's the bugid for that work ?
No specific bugid, but it's part of bug 186293.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: