Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Remove redundant explicit types.
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Jun 2, 2012
1 parent d8ad5a6 commit c95778b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/hopscotch/engine/Engine.hx
Expand Up @@ -120,7 +120,7 @@ class Engine {
systemTimeMsAverage = new RollingAverage(performanceSamplesCount); systemTimeMsAverage = new RollingAverage(performanceSamplesCount);
} }


public function start():Void { public function start() {
if (!running) { if (!running) {
running = true; running = true;
startTime = Math.floor(timeSource.getTime() - startTime = Math.floor(timeSource.getTime() -
Expand All @@ -132,7 +132,7 @@ class Engine {
} }
} }


public function stop():Void { public function stop() {
if (running) { if (running) {
running = false; running = false;


Expand All @@ -144,7 +144,7 @@ class Engine {
} }
} }


function onEnterFrame(event:Event):Void { function onEnterFrame(event:Event) {
if (!running) { if (!running) {
return; return;
} }
Expand Down Expand Up @@ -213,7 +213,7 @@ class Engine {
} }
} }


function update(frame:Int):Void { function update(frame:Int) {
if (playfield != previousPlayfield) { if (playfield != previousPlayfield) {
if (previousPlayfield != null) { if (previousPlayfield != null) {
previousPlayfield.end(); previousPlayfield.end();
Expand Down Expand Up @@ -253,13 +253,13 @@ class Engine {
} }
} }


function updateGraphic(frame:Int):Void { function updateGraphic(frame:Int) {
if (playfield != null && playfield.active) { if (playfield != null && playfield.active) {
playfield.updateGraphic(frame, screenSize); playfield.updateGraphic(frame, screenSize);
} }
} }


function render():Void { function render() {
targetBitmapData.fillRect(targetBitmapData.rect, 0x000000); targetBitmapData.fillRect(targetBitmapData.rect, 0x000000);


if (console == null || !console.enabled) { if (console == null || !console.enabled) {
Expand Down

0 comments on commit c95778b

Please sign in to comment.