From 1dd180cf9328f137a0cebbc4ab5bab3ea8f5e7f9 Mon Sep 17 00:00:00 2001 From: Julian Dolby Date: Wed, 7 Aug 2013 15:17:48 -0400 Subject: [PATCH] no longer add prologue files implicitly, since this code cannot always find them now that we allow all kinds of prologues to be used --- .../wala/cast/js/loader/JavaScriptLoader.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/loader/JavaScriptLoader.java b/com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/loader/JavaScriptLoader.java index decb571de..4a5d8dd14 100755 --- a/com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/loader/JavaScriptLoader.java +++ b/com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/loader/JavaScriptLoader.java @@ -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 modules) { - - List all = new LinkedList(); - - 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) {