Skip to content

Commit b8a15cb

Browse files
committed
Remove deprecated routines
1 parent 079b1e0 commit b8a15cb

22 files changed

+114
-1006
lines changed

src/Data/History/archiver.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/******************************************************************************
23
* MODULE : archiver.cpp
34
* DESCRIPTION: manage undo/redo history
@@ -14,7 +15,6 @@
1415
#include "observers.hpp"
1516
#include "tm_debug.hpp"
1617
#include "tree.hpp"
17-
#include "tree_helper.hpp"
1818
#include "tree_observer.hpp"
1919
#include "tree_patch.hpp"
2020

@@ -330,7 +330,7 @@ archiver_rep::confirm () {
330330
if (depth <= last_save) last_save= -1;
331331
if (depth <= last_autosave) last_autosave= -1;
332332
normalize ();
333-
show_all ();
333+
// show_all ();
334334
}
335335
}
336336
}
@@ -419,10 +419,7 @@ archiver_rep::redo_possibilities () {
419419

420420
path
421421
archiver_rep::undo_one (int i) {
422-
if (active ()) {
423-
cout << " Cannot undo while modifications are active\n";
424-
return path ();
425-
}
422+
if (active ()) return path ();
426423
cout << " undo_possibilities(): " << undo_possibilities () << "\n";
427424
if (undo_possibilities () != 0) {
428425
ASSERT (i == 0, "index out of range");
@@ -438,8 +435,7 @@ archiver_rep::undo_one (int i) {
438435
archive = make_history (un, re);
439436
depth--;
440437
// show_all ();
441-
path cursor_pos= cursor_hint (q, the_et);
442-
return cursor_pos;
438+
return cursor_hint (q, the_et);
443439
}
444440
return path ();
445441
}

0 commit comments

Comments
 (0)