Skip to content

Commit

Permalink
Merge pull request #299 from JordanMartinez/removeUnneededDisposal
Browse files Browse the repository at this point in the history
Remove unneeded disposal method from behavior
  • Loading branch information
TomasMikula committed Apr 24, 2016
2 parents 7e55428 + da2fd32 commit 2ac5b74
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,6 @@ public void positionCaret(int pos) {
public void dispose() {
subscriptions.unsubscribe();
model.dispose();
behavior.dispose();
virtualFlow.dispose();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,6 @@ private enum DragState {

private final StyledTextAreaModel<?, ?> model;

private final Subscription subscription;


/**
* Indicates whether selection is being dragged by the user.
*/
Expand Down Expand Up @@ -241,7 +238,6 @@ private CaretOffsetX getTargetCaretOffset() {
this.model = area.getModel();

InputMapTemplate.installFallback(EVENT_TEMPLATE, this, b -> b.view);
subscription = () -> InputMapTemplate.uninstall(EVENT_TEMPLATE, this, b -> b.view);

// setup auto-scroll
Val<Point2D> projection = Val.combine(
Expand All @@ -264,14 +260,6 @@ private CaretOffsetX getTargetCaretOffset() {
});
}

/* ********************************************************************** *
* Public API (from Behavior) *
* ********************************************************************** */

public void dispose() {
subscription.unsubscribe();
}

/* ********************************************************************** *
* Key handling implementation *
* ********************************************************************** */
Expand Down

0 comments on commit 2ac5b74

Please sign in to comment.