Skip to content

Commit

Permalink
🐎 Remove unneeded line
Browse files Browse the repository at this point in the history
It looks like this was causing Chrome to deoptimize this method as well
as its caller.
  • Loading branch information
abe33 committed Apr 2, 2015
1 parent 271d1c6 commit 2f94558
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/mixins/canvas-drawer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ class CanvasDrawer extends Mixin
# token - A token {Object}.
#
# Returns a {String}.
getTokenColor: (token) ->
#Retrieve color from cache if available
flatScopes = (token.scopeDescriptor or token.scopes).join()
@retrieveTokenColorFromDom(token)
getTokenColor: (token) -> @retrieveTokenColorFromDom(token)

# Returns the background color for the passed-in `decoration` object.
#
Expand Down

0 comments on commit 2f94558

Please sign in to comment.