Skip to content

Commit

Permalink
Comment dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
danyaPostfactum committed Jan 11, 2013
1 parent d703da2 commit 9aa5e66
Showing 1 changed file with 16 additions and 31 deletions.
47 changes: 16 additions & 31 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ var PHP = function( code, opts ) {
this.vm.OUTPUT_BUFFER = "Parse error: " + e.message + " in " + opts.SERVER.SCRIPT_FILENAME + " on line " + e.line;
return this;
}





var POST = opts.POST,
RAW_POST = opts.RAW_POST,
RAW = (RAW_POST !== undefined ) ? PHP.RAWPost( RAW_POST ) : {};
Expand All @@ -52,7 +49,7 @@ var PHP = function( code, opts ) {
this.compiler = new PHP.Compiler( this.AST, opts.SERVER.SCRIPT_FILENAME );
console.log(this.compiler.src);

if ( false ) {
/* if ( false ) {
var thread = new Worker("thread.js");
thread.postMessage({
Expand Down Expand Up @@ -83,36 +80,28 @@ var PHP = function( code, opts ) {
}
}, false);

} else {

this.vm = new PHP.VM( this.compiler.src, opts );


if (RAW_POST !== undefined ) {
RAW.Error(this.vm[ PHP.Compiler.prototype.ERROR ].bind( this.vm ), opts.SERVER.SCRIPT_FILENAME);
}

/*
return;
}*/

this.vm = new PHP.VM( this.compiler.src, opts );

if (RAW_POST !== undefined ) {
RAW.Error(this.vm[ PHP.Compiler.prototype.ERROR ].bind( this.vm ), opts.SERVER.SCRIPT_FILENAME);
}

/*
if (rawError !== undefined ) {
this.vm[ PHP.Compiler.prototype.ERROR ]( rawError + " in " + opts.SERVER.SCRIPT_FILENAME, PHP.Constants.E_WARNING );
}
*/
*/

this.vm.Run();

}



this.vm.Run();
};

PHP.Constants = {};

PHP.Modules = function() {
this.OUTPUT_BUFFER = "";


};

PHP.Adapters = {};
Expand Down Expand Up @@ -418,10 +407,8 @@ PHP.Utils.QueryString = function( str ) {


};

//




var arraySearch = key.match(/^(.*?)((\[[a-z+0-9_\-\[\]]*\])+)$/i);

if ( arraySearch !== null ) {
Expand All @@ -446,6 +433,4 @@ PHP.Utils.QueryString = function( str ) {

return items;

};


};

0 comments on commit 9aa5e66

Please sign in to comment.