Skip to content

Commit

Permalink
removed unused functions and broken method World.prototype.clone, rel…
Browse files Browse the repository at this point in the history
…ated to #165
  • Loading branch information
schteppe committed Jun 21, 2015
1 parent f1162d8 commit c330903
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions src/world/World.js
Original file line number Diff line number Diff line change
Expand Up @@ -1106,34 +1106,6 @@ World.prototype.enableBodyCollision = function(bodyA,bodyB){
}
};


function v2a(v){
if(!v){
return v;
}
return [v[0],v[1]];
}

function extend(a,b){
for(var key in b){
a[key] = b[key];
}
}

function contactMaterialToJSON(cm){
return {
id : cm.id,
materialA : cm.materialA.id,
materialB : cm.materialB.id,
friction : cm.friction,
restitution : cm.restitution,
stiffness : cm.stiffness,
relaxation : cm.relaxation,
frictionStiffness : cm.frictionStiffness,
frictionRelaxation : cm.frictionRelaxation,
};
}

/**
* Resets the World, removes all bodies, constraints and springs.
*
Expand Down Expand Up @@ -1176,17 +1148,6 @@ World.prototype.clear = function(){
World.apply(this);
};

/**
* Get a copy of this World instance
* @method clone
* @return {World}
*/
World.prototype.clone = function(){
var world = new World();
world.fromJSON(this.toJSON());
return world;
};

var hitTest_tmp1 = vec2.create(),
hitTest_zero = vec2.fromValues(0,0),
hitTest_tmp2 = vec2.fromValues(0,0);
Expand Down

0 comments on commit c330903

Please sign in to comment.