Remove incorrect docs for ::toggleLineCommentsForBufferRows

This commit is contained in:
Max Brunsfeld
2014-12-30 12:35:52 -08:00
parent b4756aa9b7
commit 825c4f6098
3 changed files with 1 additions and 6 deletions

View File

@@ -26,8 +26,6 @@ class LanguageMode
#
# startRow - The row {Number} to start at
# endRow - The row {Number} to end at
#
# Returns an {Array} of the commented {Ranges}.
toggleLineCommentsForBufferRows: (start, end) ->
scope = @editor.scopeDescriptorForBufferPosition([start, 0])
commentStartEntry = atom.config.getAll('editor.commentStart', {scope})[0]
@@ -97,6 +95,7 @@ class LanguageMode
buffer.insert([row, indentLength], commentStartString)
else
buffer.setTextInRange([[row, 0], [row, indentString.length]], indentString + commentStartString)
return
# Folds all the foldable lines in the buffer.
foldAll: ->

View File

@@ -536,8 +536,6 @@ class Selection extends Model
# of a comment.
#
# Removes the comment if they are currently wrapped in a comment.
#
# Returns an Array of the commented {Range}s.
toggleLineComments: ->
@editor.toggleLineCommentsForBufferRows(@getBufferRowRange()...)

View File

@@ -998,8 +998,6 @@ class TextEditor extends Model
# Extended: Toggle line comments for rows intersecting selections.
#
# If the current grammar doesn't support comments, does nothing.
#
# Returns an {Array} of the commented {Range}s.
toggleLineCommentsInSelection: ->
@mutateSelectedText (selection) -> selection.toggleLineComments()