@@ -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 ) {
@@ -237,13 +223,7 @@ function setupMethods (soljson) {
237
223
importCallback : compileJSONCallback !== null || compileStandard !== null ,
238
224
nativeStandardJSON : compileStandard !== null
239
225
} ,
240
- compile : compile ,
241
- compileStandard : compileStandard ,
242
- compileStandardWrapper : compileStandardWrapper ,
243
- supportsSingle : compileJSON !== null ,
244
- supportsMulti : compileJSONMulti !== null ,
245
- supportsImportCallback : compileJSONCallback !== null ,
246
- supportsStandard : compileStandard !== null ,
226
+ compile : compileStandardWrapper ,
247
227
// Loads the compiler of the given version from the github repository
248
228
// instead of from the local filesystem.
249
229
loadRemoteVersion : function ( versionString , cb ) {
0 commit comments