Skip to content

Commit 0a9cf59

Browse files
Merge pull request #27 from JordanMartinez/removeDeprecatedMethods
Remove deprecated methods: nextTo[Undo/Redo]
2 parents f604c80 + 4e4c733 commit 0a9cf59

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

undofx/src/main/java/org/fxmisc/undo/UndoManager.java

-22
Original file line numberDiff line numberDiff line change
@@ -60,28 +60,6 @@ interface UndoPosition {
6060
Val<C> nextRedoProperty();
6161
default C getNextRedo() { return nextRedoProperty().getValue(); }
6262

63-
/**
64-
* Gives a peek at the change that will be undone by {@link #undo()}.
65-
*
66-
* @deprecated use {@link #nextUndoProperty()}
67-
*/
68-
@Deprecated
69-
default Val<C> nextToUndoProperty() { return nextUndoProperty(); }
70-
71-
@Deprecated
72-
default C getNextToUndo() { return nextUndoProperty().getValue(); }
73-
74-
/**
75-
* Gives a peek at the change that will be redone by {@link #redo()}.
76-
*
77-
* @deprecated use {@link #nextRedoProperty()}
78-
*/
79-
@Deprecated
80-
default Val<C> nextToRedoProperty() { return nextRedoProperty(); }
81-
82-
@Deprecated
83-
default C getNextToRedo() { return nextRedoProperty().getValue(); }
84-
8563
/**
8664
* Indicates whether there is a change that can be redone.
8765
*/

undofx/src/main/java/org/fxmisc/undo/impl/UndoManagerImpl.java

-11
Original file line numberDiff line numberDiff line change
@@ -179,17 +179,6 @@ public Val<C> nextRedoProperty() {
179179
return nextRedo;
180180
}
181181

182-
183-
@Override
184-
public Val<C> nextToUndoProperty() {
185-
return nextUndo;
186-
}
187-
188-
@Override
189-
public Val<C> nextToRedoProperty() {
190-
return nextRedo;
191-
}
192-
193182
@Override
194183
public boolean isUndoAvailable() {
195184
return nextUndo.isPresent();

0 commit comments

Comments
 (0)