Closed
Bug 88612
Opened 24 years ago
Closed 24 years ago
Remove unsued cruft in the XPath classes
Categories
(Core :: XSLT, defect)
Core
XSLT
Tracking
()
VERIFIED
FIXED
People
(Reporter: sicking, Assigned: sicking)
Details
Attachments
(3 files)
|
51.34 KB,
patch
|
Details | Diff | Splinter Review | |
|
48.45 KB,
patch
|
Details | Diff | Splinter Review | |
|
5.68 KB,
patch
|
Details | Diff | Splinter Review |
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...
| Assignee | ||
Comment 1•24 years ago
|
||
| Assignee | ||
Comment 2•24 years ago
|
||
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
Comment 3•24 years ago
|
||
+ if ( idx >= 0 )
+ name.subString(0,idx, this->prefix);
Sigh.
| Assignee | ||
Comment 4•24 years ago
|
||
sorry, that code is pure copy'n'paste from setName so I didn't even look at it.
But I'll fix it...
| Assignee | ||
Comment 5•24 years ago
|
||
| Assignee | ||
Comment 6•24 years ago
|
||
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
| Assignee | ||
Comment 7•24 years ago
|
||
Comment 8•24 years ago
|
||
r=peterv for 40791 and 40796
Comment 9•24 years ago
|
||
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
| Assignee | ||
Comment 10•24 years ago
|
||
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
Comment 11•24 years ago
|
||
sr=jst
| Assignee | ||
Comment 12•24 years ago
|
||
checked in
You need to log in
before you can comment on or make changes to this bug.
Description
•