From 2f9455857bf329504f452321b20a62cc83cad686 Mon Sep 17 00:00:00 2001 From: abe33 Date: Thu, 2 Apr 2015 10:58:12 +0200 Subject: [PATCH] :racehorse: Remove unneeded line It looks like this was causing Chrome to deoptimize this method as well as its caller. --- lib/mixins/canvas-drawer.coffee | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/mixins/canvas-drawer.coffee b/lib/mixins/canvas-drawer.coffee index 35f3eaef..e7d0a597 100644 --- a/lib/mixins/canvas-drawer.coffee +++ b/lib/mixins/canvas-drawer.coffee @@ -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. #