Closed Bug 1851535 Opened 2 years ago Closed 10 months ago

Dead code removal

Categories

(Thunderbird :: General, task)

Tracking

(thunderbird_esr115 wontfix)

RESOLVED FIXED
119 Branch
Tracking Status
thunderbird_esr115 --- wontfix

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(24 files, 3 obsolete files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Code coverage data has revealed some chunks of dead code. Unsurprising given how much we've rebuilt in the past few years. I'll use this bug to remove the dead code as I find it. This will probably be an ongoing effort for a number of months.

This has been obsolete since we changed address book interfaces to use arrays instead of enumerators.

This is the column picker that allowed applying the selected columns to other folders. It has been obsolete since we replaced the mail tabs.

Pushed by mkmelin@iki.fi: https://hg.mozilla.org/comm-central/rev/a2cc373dc907 Remove AddrBookUtils.SimpleEnumerator. r=mkmelin
Target Milestone: --- → 119 Branch

Pushed by benc@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/953dc48bb0a5
Remove folderPane.getFolderFromUri. r=aleca

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/4ea706048fb7
Remove extended thread tree column picker. r=mkmelin

Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/8e4ced19d6fd
Remove code for displaying message headers as a separate document. r=mkmelin

See Also: → 1852699
Regressions: 1853067
No longer regressions: 1853067

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/80fb83e14dff
Remove nsMimeStringEnumerator. r=leftmostcat

This code was for the old mail tabs and is no longer used.

Depends on D189336

This code was for the old mail tabs and is no longer used.

Depends on D189338

Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/7ab752e718de Remove dead code from threadPane.js. r=mkmelin https://hg.mozilla.org/comm-central/rev/b446a820170d Remove dead code from folderDisplay.js. r=mkmelin

This hasn't been used since the C++ implementations of SMTP, POP3 and NNTP were removed.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/13c7f8f0760e
Remove dead code in nsMsgProtocol. r=mkmelin

Blocks: 1856964

This is code for a piece of UI that no longer exists.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/2d4f49ffb86f
Remove the defunct add-on preferences menu code. r=mkmelin

Pushed by ikey@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/b5513d44776d
Remove dead function getWindowsVersionInfo. r=thunderbird-reviewers,leftmostcat,ikey

This code has been present in at least three ESRs. If a user has a profile that has not been
opened by any of those ESRs, they really should start a fresh profile.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/2e4edc08897d
Remove dead function tabmail.getBrowserForDocumentId. r=aleca

Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/6d9221a522ab Remove migrations for profiles last used before Thunderbird 91. r=aleca

(In reply to Geoff Lankow (:darktrojan) from comment #21)

If a user has a profile that has not been opened by any of those ESRs, they really should start a fresh profile.

Can you start TB on such an old profile? It doesn't show in the profile manager and in about:profiles, TB doesn't start, it shows a message or it silently malfunctions?

Neither of these have been used since NNTP was ported to JS. DownloadMatchingNewsArticlesToNewsDB wasn't in use before then.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/d2729cf6b0ff
Remove dead newsgroup classes. r=mkmelin

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/b2b5c4d2e2dd
Remove dead tabGetSender from extensions code. r=mkmelin

LDAP version 3 has been defined as RFC4511 since 2006, and even if people were trying to use
version 2, Thunderbird stopped supporting it in v102.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/integration/autoland/rev/0dba89abce93
Remove dead arguments for switching LDAP versions. r=mkaply

Bad bot.

I don't know what this button is supposed to do. Whatever it is, it doesn't do it, as there is no code connected.

Comment on attachment 9400859 [details]
Bug 1851535 - Remove "find" button from LDAP address book properties dialog. r=#thunderbird-reviewers

Revision D209901 was moved to bug 1895826. Setting attachment 9400859 [details] to obsolete.

Attachment #9400859 - Attachment is obsolete: true

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/5a7b7bf5cdc8
Remove dead arguments for switching LDAP versions. r=aleca

We haven't used this code in production since the import UI was rebuilt in Thunderbird 102.

These tests have been importing contacts using XPCOM to find an importer, then using it to do the
importing. Thunderbird doesn't actually import contacts in that way – it uses AddrBookFileImporter,
so the tests should do that too. The importers are dead code.

This code hasn't been used since we replaced the CSV address book importer, except for adding
fields to imported Outlook contacts, and it's unclear to me whether that was even working.

Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/c3ac459a7c73 Remove dead ways of using nsIImportModule. r=aleca
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/d0c441788076 Change importer tests to use the same code path as about:import does. r=mkmelin

Pushed by solange@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/7136ad65c95e
Remove dead file importers and some other dead importer code. r=mkmelin
https://hg.mozilla.org/comm-central/rev/7e8191c19dd7
Remove nsIImportFieldMap. r=mkmelin
https://hg.mozilla.org/comm-central/rev/098945fb644a
Remove sample import data and status functions. r=mkmelin

We stopped using this with the mail tabs rebuild.

Pushed by john@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/05f46934f85d
Remove MsgHdrSyntheticView. r=aleca

The migration UI that used this code was removed in bug 1867860, and hasn't worked since 91,
according to the commit message on that bug.

Pushed by brendan@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/dd9b97a055bd
Remove old profile migration code. r=aleca

We used to use this code when printing address books. We don't do it that way any more.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/259d410e369e
Remove dead code for converting nsIAbCard to XML. r=mkmelin

See Also: → 1901705

Comment on attachment 9406574 [details]
Bug 1851535 - Remove MessengerProfileMigrator. r=#thunderbird-reviewers

Revision D213187 was moved to bug 1901705. Setting attachment 9406574 [details] to obsolete.

Attachment #9406574 - Attachment is obsolete: true

Retiring this bug now that 128 has branched.

Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Keywords: leave-open
Resolution: --- → FIXED
Regressions: 1901912
Attachment #9405978 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: