Refactor tune() to pass in an integer-based count
[WebKit-https.git] / PerformanceTests / Animometer / tests / examples / resources / canvas-electrons.js
index 5e12e9f..11f8920 100644 (file)
@@ -60,8 +60,6 @@ CanvasElectronsStage.prototype.constructor = CanvasElectronsStage;
 
 CanvasElectronsStage.prototype.tune = function(count)
 {
-    count = count > 0 ? Math.floor(count) : Math.ceil(count);
-
     if (count == 0)
         return this._electrons.length;