Closed Bug 1749935 Opened 2 years ago Closed 2 years ago

Clean up nsParser

Categories

(Core :: XML, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: peterv, Assigned: peterv)

Details

Attachments

(27 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
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

There's quite a bit of unused code in nsParser. I have patches to clean it up a bit.

Depends on D135847

Depends on D135886

Depends on D135898

Pushed by pvanderbeken@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/83508ce6ee60
Mark nsIParser::WillResume(Impl) as infallible. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/1576222e280a
Remove unused PREFER_LATTER_ERROR_CODE. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/e1ee82d8e5db
Remove unused eAutoDetectResult values. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/d24f05815ce7
Remove nsIParser::GetChannel. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/4c4b6112d50d
Remove nsIParser::MarkAsNotScriptCreated. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/979083a9437e
Remove unused nsParser::SetUnusedInput. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/b41618e99f19
Remove unused NS_PARSER_FLAG_OBSERVERS_ENABLED and NS_PARSER_FLAG_FLUSH_TOKENS. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/f411808c8525
Remove unused aTokenizer argument for nsIDTD::WillBuildModel/BuildModel. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/514a753b085d
Remove unused nsIDTD::CanContain/IsContainer. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/8db8f12cab68
Remove empty nsIContentSink::WillBuildModel/DidBuildModel implementations. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/929416db4638
Remove nsDTDMode::eDTDMode_unknown and unused nsDTDMode::eDTDMode_almost_standards/eDTDMode_fragment. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/f800e03ad141
Remove unused argument from nsIDTD::DidBuildModel. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/b7abf97a3b2d
Remove nsIDTD::GetMode. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/ad1fa921196f
Remove unused support for nested CParserContext. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/60bdd2fd3b39
Always create scanner upfront. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/797d4dbb3684
Make mSlidingBuffer a UniquePtr. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/d8f937504615
Inline FindSuitableDTD in caller. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/4432977f8d88
Remove nsIDTD::WillBuildModel. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/669545ac4284
Inline nsParser::WillTokenize in the caller. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/4b3fad3ba013
Inline nsParser::BuildModel. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/e2546d0fa54e
Inline nsParser::Tokenize. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/db93847a85c4
Remove nsITokenizer. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/52b322741400
Create nsParser directly instead of with a CID. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/5c399611bc11
Remove nsIParser::ParseFragment/Reset. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/a0578d8be39e
Inline nsParser::CancelParsingEvents. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/5267cd84c969
Remove GetDTD. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/d77ccf22cd5e
Simplify nsParser::Initialize. r=hsivonen

https://hg.mozilla.org/mozilla-central/rev/83508ce6ee60
https://hg.mozilla.org/mozilla-central/rev/1576222e280a
https://hg.mozilla.org/mozilla-central/rev/e1ee82d8e5db
https://hg.mozilla.org/mozilla-central/rev/d24f05815ce7
https://hg.mozilla.org/mozilla-central/rev/4c4b6112d50d
https://hg.mozilla.org/mozilla-central/rev/979083a9437e
https://hg.mozilla.org/mozilla-central/rev/b41618e99f19
https://hg.mozilla.org/mozilla-central/rev/f411808c8525
https://hg.mozilla.org/mozilla-central/rev/514a753b085d
https://hg.mozilla.org/mozilla-central/rev/8db8f12cab68
https://hg.mozilla.org/mozilla-central/rev/929416db4638
https://hg.mozilla.org/mozilla-central/rev/f800e03ad141
https://hg.mozilla.org/mozilla-central/rev/b7abf97a3b2d
https://hg.mozilla.org/mozilla-central/rev/ad1fa921196f
https://hg.mozilla.org/mozilla-central/rev/60bdd2fd3b39
https://hg.mozilla.org/mozilla-central/rev/797d4dbb3684
https://hg.mozilla.org/mozilla-central/rev/d8f937504615
https://hg.mozilla.org/mozilla-central/rev/4432977f8d88
https://hg.mozilla.org/mozilla-central/rev/669545ac4284
https://hg.mozilla.org/mozilla-central/rev/4b3fad3ba013
https://hg.mozilla.org/mozilla-central/rev/e2546d0fa54e
https://hg.mozilla.org/mozilla-central/rev/db93847a85c4
https://hg.mozilla.org/mozilla-central/rev/52b322741400
https://hg.mozilla.org/mozilla-central/rev/5c399611bc11
https://hg.mozilla.org/mozilla-central/rev/a0578d8be39e
https://hg.mozilla.org/mozilla-central/rev/5267cd84c969
https://hg.mozilla.org/mozilla-central/rev/d77ccf22cd5e

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: