@@ -79,20 +79,6 @@ function setupMethods (soljson) {
79
79
} ;
80
80
}
81
81
82
- var compile = function ( input , optimise , readCallback ) {
83
- var result = '' ;
84
- if ( readCallback !== undefined && compileJSONCallback !== null ) {
85
- result = compileJSONCallback ( JSON . stringify ( input ) , optimise , readCallback ) ;
86
- } else if ( typeof input !== 'string' && compileJSONMulti !== null ) {
87
- result = compileJSONMulti ( JSON . stringify ( input ) , optimise ) ;
88
- } else if ( compileJSON !== null ) {
89
- result = compileJSON ( input , optimise ) ;
90
- } else {
91
- return { errors : 'No suitable compiler interface found.' } ;
92
- }
93
- return JSON . parse ( result ) ;
94
- } ;
95
-
96
82
// Expects a Standard JSON I/O but supports old compilers
97
83
var compileStandardWrapper = function ( input , readCallback ) {
98
84
if ( compileStandard !== null ) {
@@ -230,13 +216,7 @@ function setupMethods (soljson) {
230
216
compileCallback : compileJSONCallback ,
231
217
compileStandard : compileStandard
232
218
} ,
233
- compile : compile ,
234
- compileStandard : compileStandard ,
235
- compileStandardWrapper : compileStandardWrapper ,
236
- supportsSingle : compileJSON !== null ,
237
- supportsMulti : compileJSONMulti !== null ,
238
- supportsImportCallback : compileJSONCallback !== null ,
239
- supportsStandard : compileStandard !== null ,
219
+ compile : compileStandardWrapper ,
240
220
// Loads the compiler of the given version from the github repository
241
221
// instead of from the local filesystem.
242
222
loadRemoteVersion : function ( versionString , cb ) {
0 commit comments