Closed Bug 88612 Opened 24 years ago Closed 24 years ago

Remove unsued cruft in the XPath classes

Categories

(Core :: XSLT, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: sicking, Assigned: sicking)

Details

Attachments

(3 files)

There is lots of unused functions in the XPath classes that just clutter up the code and increases download/compile time. Patch coming up that removes these functions. It's not aimed in any way to improve the code that is actually used, just remove unused code. Though in a couple of instances my fingers just itched too much where I changed some code to be able to remove some function (NodeSet::remove being the only non-trivial example) patch coming up...
I'm actually having seconds thoughts on removing the NodeSet::remove functions since they are prtentionally usefull, however they're not used anywhere (with my changes to PredicateList::evaluatePredicates which are good anyway IMHO) so... oppinions?
Status: NEW → ASSIGNED
Keywords: review
+ if ( idx >= 0 ) + name.subString(0,idx, this->prefix); Sigh.
sorry, that code is pure copy'n'paste from setName so I didn't even look at it. But I'll fix it...
peterv pointed out that removing NodeSet::equals made it fallback to TxObject::equals. However we only use ::equals in the Map class for it's keys. However we only have Maps that key on Nodes so this should be safe. Dang! I just realized that I havn't cleanup up the ExprResult classes :( Separate patch for those coming up
r=peterv for 40791 and 40796
Are there any usecases for NodeSet::remove? or possible optims? I would like that method to go, if there aren't any good reasons to keep it. Axel
I've left NodeSet::remove in there for two reasons: 1. It's currently used by PredicateList::evaluatePredicates (this is the main reason) 2. It is IMHO not an altogether bad function and could be usefull in the future
sr=jst
checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Keywords: review
Resolution: --- → FIXED
it's gone
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: