Skip to content

Commit

Permalink
Merge pull request #27 from JordanMartinez/removeDeprecatedMethods
Browse files Browse the repository at this point in the history
Remove deprecated methods: nextTo[Undo/Redo]
  • Loading branch information
JordanMartinez authored Mar 6, 2018
2 parents f604c80 + 4e4c733 commit 0a9cf59
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
22 changes: 0 additions & 22 deletions undofx/src/main/java/org/fxmisc/undo/UndoManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,28 +60,6 @@ interface UndoPosition {
Val<C> nextRedoProperty();
default C getNextRedo() { return nextRedoProperty().getValue(); }

/**
* Gives a peek at the change that will be undone by {@link #undo()}.
*
* @deprecated use {@link #nextUndoProperty()}
*/
@Deprecated
default Val<C> nextToUndoProperty() { return nextUndoProperty(); }

@Deprecated
default C getNextToUndo() { return nextUndoProperty().getValue(); }

/**
* Gives a peek at the change that will be redone by {@link #redo()}.
*
* @deprecated use {@link #nextRedoProperty()}
*/
@Deprecated
default Val<C> nextToRedoProperty() { return nextRedoProperty(); }

@Deprecated
default C getNextToRedo() { return nextRedoProperty().getValue(); }

/**
* Indicates whether there is a change that can be redone.
*/
Expand Down
11 changes: 0 additions & 11 deletions undofx/src/main/java/org/fxmisc/undo/impl/UndoManagerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,6 @@ public Val<C> nextRedoProperty() {
return nextRedo;
}


@Override
public Val<C> nextToUndoProperty() {
return nextUndo;
}

@Override
public Val<C> nextToRedoProperty() {
return nextRedo;
}

@Override
public boolean isUndoAvailable() {
return nextUndo.isPresent();
Expand Down

0 comments on commit 0a9cf59

Please sign in to comment.