From 601b0305e97b70d3c0b163da89edaa374581ac5d Mon Sep 17 00:00:00 2001 From: otya128 Date: Sat, 3 Dec 2016 13:50:47 +0900 Subject: [PATCH] remove unused code --- SMILEBASIC/petitcomputer.d | 42 -------------------------------------- 1 file changed, 42 deletions(-) diff --git a/SMILEBASIC/petitcomputer.d b/SMILEBASIC/petitcomputer.d index 176aef9..abfedbf 100644 --- a/SMILEBASIC/petitcomputer.d +++ b/SMILEBASIC/petitcomputer.d @@ -782,43 +782,6 @@ class PetitComputer { printInformation(); directMode = true; - /*vm.code.append(parser.compiler.compileProgram());*/ - version(none) - do - { - auto file = input("LOAD PROGRAM:", true).to!string; - try - { - parser = new Parser(readText(file).to!wstring); - } - catch(Throwable t) - { - writeln(t); - print("can't open program \"", file, "\".\n"); - continue; - } - try - { - vm = parser.compile(); - vm.init(this); - running = true; - } - catch(SmileBasicError sbe) - { - print(sbe.getErrorMessage, "\n"); - print(sbe.getErrorMessage2, "\n"); - //print(sbe.to!string); - writeln(sbe.to!string); - writeln(sbe.getErrorMessage2); - continue; - } - catch(Throwable t) - { - writeln(t); - continue; - } - break; - } while(!quit); } do { @@ -911,11 +874,6 @@ class PetitComputer } //vm.dump; this.vm = vm; - //bg[0].put(0,0,1); - //gpset(0, 10, 10, 0xFF00FF00); - //gline(0, 0, 0, 399, 239, RGB(0, 255, 0)); - //gfill(0, 78, 78, 40, 40, RGB(0, 255, 255)); - //gbox(0, 78, 78, 40, 40, RGB(255, 255, 0)); int startcnt = SDL_GetTicks(); float frame = 1000f / 60f; typeof(vm.currentLocation()) loc;