From 6ea9c248d8ac8d6097db46a092ab29d5a9f687a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Szab=C3=B3?= Date: Fri, 23 Sep 2016 13:33:04 +0200 Subject: [PATCH] Remove unneccessary else if --- src/js/model/frame/CachedFrameProcessor.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/js/model/frame/CachedFrameProcessor.js b/src/js/model/frame/CachedFrameProcessor.js index 648eacaf..8a8ba610 100644 --- a/src/js/model/frame/CachedFrameProcessor.js +++ b/src/js/model/frame/CachedFrameProcessor.js @@ -66,10 +66,6 @@ var cacheKey = frame.getHash(); if (cache[cacheKey]) { processedFrame = cache[cacheKey]; - } else if (frame instanceof pskl.model.frame.RenderedFrame) { - // Cannot use 2nd level cache with rendered frames - processedFrame = this.frameProcessor(frame); - cache[cacheKey] = processedFrame; } else { processedFrame = this.frameProcessor(frame); cache[cacheKey] = processedFrame;