Skip to content

Commit

Permalink
removed Render.clear (redundant)
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Jan 17, 2015
1 parent 01bc813 commit 0a15d7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion src/core/Runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 0 additions & 10 deletions src/render/Render.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 0a15d7d

Please sign in to comment.