mirror of
https://github.com/atom/atom.git
synced 2026-02-08 05:35:04 -05:00
Remove unused methods from token.
The refactoring of Editor.buildLineHtml removed the need for these methods
This commit is contained in:
@@ -32,15 +32,3 @@ class Token
|
||||
|
||||
buildTabToken: (tabText) ->
|
||||
new Token(value: tabText, scopes: @scopes, bufferDelta: 1, isAtomic: true)
|
||||
|
||||
getCssClassString: ->
|
||||
@cssClassString ?= @getCssClasses().join(' ')
|
||||
|
||||
getCssClasses: ->
|
||||
classes = []
|
||||
for scope in @scopes
|
||||
scopeComponents = scope.split('.')
|
||||
for i in [0...scopeComponents.length]
|
||||
classes.push scopeComponents[0..i].join('-')
|
||||
classes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user