   isClosingBracket: (string) ->
     @getInvertedPairedCharacters().hasOwnProperty(string)
 
-  isCloseCharacter: (string) ->
-    @closeCharacter == string
-
   selectionIsWrappedByMatchingBrackets: (selection) ->
     return false if selection.isEmpty()
     selectedText = selection.getText()

        selectionEnd = range.end.add([0, -1])

      text = selection.getText()
      selection.insertText(text.substring(1,text.length - 1))
      selection.setBufferRange([selectionStart, selectionEnd], options)

  wrapSelectionInBrackets: (editor, bracket) ->

    pair = @pairedCharacters[bracket]
    selectionWrapped = false
    editor.mutateSelectedText (selection) ->

    atom.project.eachEditor (editor) =>
      @subscribeToEditor(editor)

    atom.workspaceView.command "bracket-matcher:remove-brackets", (event) =>
      event.abortKeyBinding() unless @removeBrackets()

  subscribeToEditor: (editor) ->
    @bracketMarkers = []
