Closed Bug 457104 Opened 16 years ago Closed 15 years ago

nsTextServicesDocument::FirstSelectedBlock dead?

Categories

(Core :: DOM: Editor, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: taras.mozilla, Assigned: fred.jen)

References

Details

Attachments

(1 file)

Roc or someone else:
It seems that a bunch of methods in editor/ are never called. The are the largest out uncalled methods in Moz. I'd like to start with FirstSelectedBlock as it's the biggest, is it ok to remove it?
Peterv is the right person to ask.
No longer blocks: static_analyses
Blocks: deadcode
Peterv, 
By a bunch I mean atleast the following:
nsTextServicesDocument::FirstSelectedBlock
nsTextServicesDocument::GetDOMRangeFor
nsTextServicesDocument::InitWithDocument
nsTextServicesDocument::LastBlock
nsTextServicesDocument::GetDocument
nsTextServicesDocument::GetExtent
nsTextServicesDocument::CanEdit
nsTextServicesDocument::SetDisplayStyle

Is there any reason to keep these?
also 
nsHTMLEditor::GetParentBlockTags is dead to me
nsHTMLEditor::GetNextElementByTagName is dead to me
nsHTMLEditor::GetFirstCellInRow is dead to me
nsHTMLEditor::GetNextCellInRow is dead to me
nsHTMLEditor::IsSubordinateBlock is dead to me
nsHTMLEditor::GetHighlightColor is dead to me
nsHTMLEditor::HasSameBlockNodeParent is dead to me
nsHTMLEditor::ResetTextSelectionForRange is dead to me
nsHTMLEditor::GetAbsoluteOffsetsForPoints is dead to me
nsHTMLEditor::AddCSSStyleSheet is dead to me
are high on the dead code size list
I'm fine with removing these, but I haven't checked personally whether they're still used or not.
Assignee: nobody → fred.jen
I took a look in mxr, removed everything that is dead for me and it builds and works fine for me.
Attachment #349940 - Flags: review?(peterv)
Attachment #349940 - Flags: superreview+
Attachment #349940 - Flags: review?(peterv)
Attachment #349940 - Flags: review+
Comment on attachment 349940 [details] [diff] [review]
removed the functions

Pleae also remove InitWithDocument from the comment in nsITextServicesDocument.h.
http://hg.mozilla.org/mozilla-central/rev/bbb30d93a82f
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: