mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Remove incorrect docs for ::toggleLineCommentsForBufferRows
This commit is contained in:
@@ -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: ->
|
||||
|
||||
@@ -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()...)
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user