Skip to content

Commit

Permalink
Remove deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
javan committed Sep 19, 2018
1 parent 4fed0f0 commit 211eba8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
6 changes: 0 additions & 6 deletions src/trix/controllers/editor_controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,6 @@ class Trix.EditorController extends Trix.Controller
decreaseNestingLevel:
test: -> @editor.canDecreaseNestingLevel()
perform: -> @editor.decreaseNestingLevel() and @render()
increaseBlockLevel: # deprecated in favor of increaseNestingLevel
test: -> @editor.canIncreaseNestingLevel()
perform: -> @editor.increaseNestingLevel() and @render()
decreaseBlockLevel: # deprecated in favor of decreaseNestingLevel
test: -> @editor.canDecreaseNestingLevel()
perform: -> @editor.decreaseNestingLevel() and @render()

canInvokeAction: (actionName) ->
if @actionIsExternal(actionName)
Expand Down
14 changes: 0 additions & 14 deletions src/trix/models/editor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,6 @@ class Trix.Editor
if @canIncreaseNestingLevel()
@composition.increaseNestingLevel()

# Indentation level (deprecated aliases to be removed in v1.0)

canDecreaseIndentationLevel: ->
@canDecreaseNestingLevel()

canIncreaseIndentationLevel: ->
@canIncreaseNestingLevel()

decreaseIndentationLevel: ->
@decreaseNestingLevel()

increaseIndentationLevel: ->
@increaseNestingLevel()

# Undo/redo

canRedo: ->
Expand Down

0 comments on commit 211eba8

Please sign in to comment.