From 0a15d7d1b18943426fbddf98b5a29c5e9ae12ed8 Mon Sep 17 00:00:00 2001 From: liabru Date: Sat, 17 Jan 2015 14:27:51 +0000 Subject: [PATCH] removed Render.clear (redundant) --- src/core/Runner.js | 2 +- src/render/Render.js | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/core/Runner.js b/src/core/Runner.js index 0ef6291f..dd35e4a6 100644 --- a/src/core/Runner.js +++ b/src/core/Runner.js @@ -100,7 +100,7 @@ var Runner = {}; Events.trigger(engine, 'tick', event); // if world has been modified, clear the render scene graph - if (engine.world.isModified) + if (engine.world.isModified && engine.render.controller.clear) engine.render.controller.clear(engine.render); // update diff --git a/src/render/Render.js b/src/render/Render.js index cdf7e41c..59f45b47 100644 --- a/src/render/Render.js +++ b/src/render/Render.js @@ -80,16 +80,6 @@ var Render = {}; return render; }; - /** - * Clears the renderer. In this implementation, this is a noop. - * @method clear - * @param {render} render - */ - Render.clear = function(render) { - // nothing required to clear this renderer implentation - // if a scene graph is required, clear it here (see RenderPixi.js) - }; - /** * Sets the pixel ratio of the renderer and updates the canvas. * To automatically detect the correct ratio, pass the string `'auto'` for `pixelRatio`.