Page MenuHomePhabricator

Remove unused Title::nameOf in MediaWiki Core
Open, Needs TriagePublic


Title::nameOf can be used to retrieve the prefixed DB key associated with a page ID. It currently has no known callers[1], and it accesses the global state (via wfGetDB), which should be discouraged.

Any reason it can't be deprecated and removed?


Event Timeline

Restricted Application added a project: User-DannyS712. · View Herald TranscriptMay 31 2020, 1:36 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
DannyS712 moved this task from Unsorted to Others on the User-DannyS712 board.May 31 2020, 1:36 AM
DannyS712 added a project: good first task.
Aklapper renamed this task from Title::nameOf is unused to Remove unused Title::nameOf in MediaWiki Core.May 31 2020, 8:10 AM

Why not? I'd say yeah, go for it

Change 621968 had a related patch set uploaded (by Southparkfan; owner: Southparkfan):
[mediawiki/core@master] Deprecate Title::nameOf()

Change 621968 merged by jenkins-bot:
[mediawiki/core@master] Deprecate Title::nameOf()

[Now waiting for the MW 1.37 cycle.]