Gecko:Obsolete API: Difference between revisions
(→Obsolete API: nsIPref) |
|||
Line 11: | Line 11: | ||
** Use nsIPrefService/nsIPrefBranch/nsIPrefBranch2 | ** Use nsIPrefService/nsIPrefBranch/nsIPrefBranch2 | ||
** https://bugzilla.mozilla.org/show_bug.cgi?id=175193 | ** https://bugzilla.mozilla.org/show_bug.cgi?id=175193 | ||
* nsISupportsArray, nsIEnumerator | |||
** Use any of the arrays in [http://www.mozilla.org/projects/xpcom/array-guide.html The Mozilla Array Guide], or use nsTArray (which is missing from the guide) | |||
= Proposed Obsolete API = | = Proposed Obsolete API = |
Revision as of 08:50, 11 October 2006
APIs that are declared as obsolete, by virtue of being on this list have their days numbered in the codebase. They will be removed at some point in the future. Because of this, no new code is allowed to use any of the classes, functions, or types that appear on this list, except if they must conform to an older interface that demands the usage of an obsolete type. Reviewers and superreviewers should become familiar with this list for this reason.
If at all possible, please provide a) a suggested alternate class or function that provides similar functionality; and b) a link to a bug for removing the obsolete API from the codebase. The bug should contain rationale for obsoleting that API. To propose an API for obsolescence, please file a bug and add it to the proposed obsolete API section.
Obsolete API
- nsIFileSpec, nsFileSpec
- FileSpec has various issues, including being limited to the system character set for filenames.
- Use nsIFile/nsILocalFile/nsILocalFile{In,Out}putStream
- https://bugzilla.mozilla.org/show_bug.cgi?id=38122
- nsIPref
- Use nsIPrefService/nsIPrefBranch/nsIPrefBranch2
- https://bugzilla.mozilla.org/show_bug.cgi?id=175193
- nsISupportsArray, nsIEnumerator
- Use any of the arrays in The Mozilla Array Guide, or use nsTArray (which is missing from the guide)