Skip to content

Commit

Permalink
Remove dead code from display.js
Browse files Browse the repository at this point in the history
chunkClass.unique is never set (chunkClass.prototype.unique might be
set), so this code was dead.
  • Loading branch information
Olli Etuaho committed Jun 25, 2014
1 parent 5357c5b commit 89a204d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/core/display/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,7 @@ SceneJS_Display.prototype._setChunk = function (object, order, chunkType, core,
var chunkId;
var chunkClass = this._chunkFactory.chunkTypes[chunkType];

if (chunkClass.unique) {

// Suppress run culling for this core type
chunkId = core.stateId + 1;

} else if (core) {
if (core) {

// Core supplied
if (core.empty) { // Only set default cores for state types that have them
Expand Down

0 comments on commit 89a204d

Please sign in to comment.