Closed Bug 422620 Opened 17 years ago Closed 17 years ago

Remove NS_BrightenColor and NS_DarkenColor

Categories

(Core Graveyard :: GFX, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.9beta5

People

(Reporter: alfredkayser, Assigned: alfredkayser)

Details

(Keywords: memory-footprint)

Attachments

(1 file, 1 obsolete file)

Remove NS_BrightenColor and NS_DarkenColor, as they are defined in nsColor, but nowhere used. Also they use a fixed hardcode factor to the adjustment, making them not useful generic functions to keep around.
Attachment #309072 - Flags: review?(vladimir)
Assignee: nobody → alfredkayser
Status: NEW → ASSIGNED
Also NS_ASCIIHexToRGB and NS_RGBToASCIIHex are not used anywhere (anymore?) (see http://lxr.mozilla.org/mozilla/ident?i=NS_ASCIIHexToRGB) (see http://lxr.mozilla.org/mozilla/ident?i=NS_RGBToASCIIHex) With this patch, the .obj size is 10K less.
Attachment #309072 - Attachment is obsolete: true
Attachment #309077 - Flags: review?
Attachment #309072 - Flags: review?(vladimir)
Attachment #309077 - Flags: review? → review?(vladimir)
Attachment #309077 - Flags: approval1.9?
Component: Layout: Misc Code → GFX
QA Contact: layout.misc-code → general
Version: unspecified → Trunk
Comment on attachment 309077 [details] [diff] [review] V2: Also remove the ASCIIHex functions a1.9+=damons
Attachment #309077 - Flags: approval1.9? → approval1.9+
Keywords: checkin-needed
Checking in gfx/public/nsColor.h; /cvsroot/mozilla/gfx/public/nsColor.h,v <-- nsColor.h new revision: 1.26; previous revision: 1.25 done Checking in gfx/src/nsColor.cpp; /cvsroot/mozilla/gfx/src/nsColor.cpp,v <-- nsColor.cpp new revision: 3.36; previous revision: 3.35 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9beta5
Verified: libgkgfx.so Total: -608 (+9/-617) Code: -617 (+0/+0) Data: +9 (+9/-617) -608 (+9/-617) text (DATA) -608 (+9/-617) UNDEF:libgkgfx.so:text +9 .nosyms.text -19 nsAutoString::~nsAutoString() -19 NS_ConvertASCIItoUTF16::~NS_ConvertASCIItoUTF16() -28 nsAutoString::nsAutoString() -43 nsACString_internal::BeginWriting() -49 NS_ConvertASCIItoUTF16::NS_ConvertASCIItoUTF16(nsACString_internal const&) -69 NS_ASCIIHexToRGB(nsCString const&, unsigned int*) -88 NS_RGBToASCIIHex(unsigned int, nsCString&) -140 NS_DarkenColor(unsigned int) -162 NS_BrightenColor(unsigned int)
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: