aboutsummaryrefslogtreecommitdiff
path: root/editors/xenon/files/patch-XeText.C
diff options
context:
space:
mode:
Diffstat (limited to 'editors/xenon/files/patch-XeText.C')
-rw-r--r--editors/xenon/files/patch-XeText.C33
1 files changed, 0 insertions, 33 deletions
diff --git a/editors/xenon/files/patch-XeText.C b/editors/xenon/files/patch-XeText.C
deleted file mode 100644
index 502514913159..000000000000
--- a/editors/xenon/files/patch-XeText.C
+++ /dev/null
@@ -1,33 +0,0 @@
---- XeText.C.orig Sat Jan 5 20:39:39 2002
-+++ XeText.C Fri Dec 1 21:25:34 2006
-@@ -1612,26 +1612,19 @@
-
- if(_numUndos >= _maxUndos) {
-
-- // $$$ calling previous() here assums _undoList is not empty
-- // previous() is O(N) where N is the number of undo items in the list
-- // if this turns out to be too much of a performance penalty, use
-- // std::list instead of std::slist for _undoList
--
-- std::slist<Undo*>::iterator pos = _undoList.previous(_undoList.end());
-- Undo* undo = *pos;
-+ Undo* undo = _undoList.back();
-
- _undoBuf.remove(KRBUF_END, _undoBuf.length() - undo->len);
- delete undo;
-- _undoList.erase(pos);
-+ _undoList.pop_back();
-
- if (!_undoList.empty()) {
-- pos = _undoList.previous(_undoList.end());
-- undo = *pos;
-+ undo = _undoList.back();
-
- if (undo && undo->type == InsertSelection) {
- _undoBuf.remove(KRBUF_END, _undoBuf.length() - undo->len);
- delete undo;
-- _undoList.erase(pos);
-+ _undoList.pop_back();
- }
- }
-