From b8811780ef77ac1ee1fb8467cb846dfbcfb12d70 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Thu, 9 Jun 2011 15:44:10 -0400 Subject: [PATCH] removed unneeded cache --- lib/compass/sprite_importer.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/compass/sprite_importer.rb b/lib/compass/sprite_importer.rb index 084dbc1e..d385f3d0 100644 --- a/lib/compass/sprite_importer.rb +++ b/lib/compass/sprite_importer.rb @@ -56,12 +56,10 @@ module Compass end def self.path_and_name(uri) - Compass.quick_cache "Sprite_map_name:#{uri}", 5 do - if uri =~ SPRITE_IMPORTER_REGEX - [$1, $3] - else - [nil, nil] - end + if uri =~ SPRITE_IMPORTER_REGEX + [$1, $3] + else + raise Compass::Error "invalid sprite path" end end