no longer add prologue files implicitly, since this code cannot always

find them now that we allow all kinds of prologues to be used
This commit is contained in:
Julian Dolby 2013-08-07 15:17:48 -04:00
parent e89d0acf16
commit 1dd180cf93
1 changed files with 0 additions and 23 deletions

View File

@ -1012,29 +1012,6 @@ public class JavaScriptLoader extends CAstAbstractModuleLoader {
bootstrapFileNames.add(prologueFileName);
}
/**
* adds the {@link #bootstrapFileNames bootstrap files} to the list of modules
* and then invokes the superclass method
*/
@Override
public void init(List<Module> modules) {
List<Module> all = new LinkedList<Module>();
for (final String fn : bootstrapFileNames) {
all.add(new SourceURLModule(getClass().getClassLoader().getResource(fn)) {
@Override
public String getName() {
return fn;
}
});
}
all.addAll(modules);
super.init(all);
}
@SuppressWarnings("unchecked")
@Override
protected TranslatorToCAst getTranslatorToCAst(final CAst ast, SourceModule module) {