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

RESOLVED FIXED in mozilla8

Status

()

RESOLVED FIXED
8 years ago
7 years ago

People

(Reporter: emorley, Assigned: emorley)

Tracking

(Blocks: 1 bug)

Trunk
mozilla8
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 2 obsolete attachments)

(Assignee)

Description

8 years ago
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)

Updated

8 years ago
Assignee: nobody → bmo
Status: NEW → ASSIGNED
(Assignee)

Comment 2

8 years ago
Created attachment 528853 [details] [diff] [review]
Patch v1

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 4

8 years ago
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+
(Assignee)

Comment 5

8 years ago
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.
(Assignee)

Comment 7

8 years ago
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...
(Assignee)

Updated

7 years ago
Flags: in-testsuite-
(Assignee)

Comment 8

7 years ago
Created attachment 546887 [details] [diff] [review]
Patch v1.1

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+
(Assignee)

Comment 9

7 years ago
Created attachment 549876 [details] [diff] [review]
Patch v1.2

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+
(Assignee)

Updated

7 years ago
Keywords: checkin-needed

Updated

7 years ago
Keywords: checkin-needed
Whiteboard: [inbound]
(Assignee)

Comment 10

7 years ago
http://hg.mozilla.org/mozilla-central/rev/3a3e648530b2
Status: ASSIGNED → RESOLVED
Last Resolved: 7 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.