Closed Bug 653333 Opened 13 years ago Closed 13 years ago

Remove legacy splash screen code (nsSplashScreen, MOZ_SPLASHSCREEN, splash.bmp) now that no platforms use it

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla8

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file, 2 obsolete files)

My patch in bug 652445 (once it lands) removes nsSplashScreenWin.cpp, since it was only used under WinCE.

This leaves all other platforms using nsSplashScreenDummy.cpp:
http://mxr.mozilla.org/mozilla-central/source/toolkit/xre/Makefile.in#77

...which does nothing but return null:
http://mxr.mozilla.org/mozilla-central/source/toolkit/xre/nsSplashScreenDummy.cpp

These files can thus be removed:
- /toolkit/xre/nsSplashScreenDummy.cpp
- /toolkit/xre/nsSplashScreen.h

Which leaves MOZ_SPLASHSCREEN unused, so can be removed:
http://mxr.mozilla.org/mozilla-central/search?string=MOZ_SPLASHSCREEN

And also several splash.bmp files unused, so can be removed:
http://mxr.mozilla.org/mozilla-central/find?string=splash.bmp&tree=mozilla-central
Assignee: nobody → bmo
Status: NEW → ASSIGNED
Attached patch Patch v1 (obsolete) — Splinter Review
Remove all #ifdef MOZ_SPLASHSCREEN code & hg rm the following:
- browser/branding/*/splash.bmp
- mobile/app/splash.bmp
- toolkit/xre/nsSplashScreen.h
- toolkit/xre/nsSplashScreenDummy.cpp

Passed try: 
http://dev.philringnalda.com/tbpl/?tree=Try&rev=890f09eb3976

Dave: 
Not sure who to ask for review, since this touches a few areas + looking at the hg logs wasn't conclusive. Picked you due to: https://wiki.mozilla.org/Modules/Toolkit#Toolkit ; but please let me know if I should be asking someone else. Thanks!


(Note: This patch applies on top of the ones in bug 652445, which haven't yet landed).
Attachment #528853 - Flags: review?(dtownsend)
Comment on attachment 528853 [details] [diff] [review]
Patch v1

I'd like Benjamin to assert he's ok with this then I think it's good to go.
Attachment #528853 - Flags: review?(dtownsend)
Attachment #528853 - Flags: review?(benjamin)
Attachment #528853 - Flags: review+
Comment on attachment 528853 [details] [diff] [review]
Patch v1

I am 99% sure that the Android splash screen does not use this code, but please confirm that with mfinkle before landing this.
Attachment #528853 - Flags: review?(benjamin) → review+
Mark, bsmedberg has asked that I check with you regarding comment 4. The MXR links in comment 1 make me believe that Android does not use nsSplashScreen - but if you could confirm here, that would be great. Thanks!
Android does not use this code for a splashscreen. We use the Java loader code to display a splashscreen, before the Mozilla platform is really even initialized.

However, here is a patch to add splash screen support to maemo/meego and it uses this code. See bug 643122.

Lets hold off on removing the splashscreen support until we see if Meego, and any other new mobile platforms, might need it.
Thanks for the heads up.

Suspect even if bug 643122 lands in it's nsSplashScreen using form, there are going to be unused splash.bmp files from the WinCE era (eg the nightly/aurora splash.bmp are out of date); but will just be easier to wait until the dust settles on that bug before moving this one further...
Flags: in-testsuite-
Attached patch Patch v1.1 (obsolete) — Splinter Review
Only change from previously r+'d patch are the two lines in mobile/app/Makefile.in - requesting review just for those. Thanks! :-)

http://dev.philringnalda.com/tbpl/?tree=Try&rev=bea4b20fdc0b
Attachment #528853 - Attachment is obsolete: true
Attachment #546887 - Flags: review?(dtownsend)
Attachment #546887 - Flags: review?(dtownsend) → review+
Attached patch Patch v1.2Splinter Review
Updated to tip. No other changes, so carrying forwards r+.
Sent to try again for build only, for sanity check:
http://dev.philringnalda.com/tbpl/?tree=Try&rev=d57322b447c4

See comment 2 for older full try run.

Thanks for the review Dave :-)
Attachment #546887 - Attachment is obsolete: true
Attachment #549876 - Flags: review+
Keywords: checkin-needed
Keywords: checkin-needed
Whiteboard: [inbound]
http://hg.mozilla.org/mozilla-central/rev/3a3e648530b2
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: