diff truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java @ 22325:414e82b9fc35

Release 0.9 is out, let's remove deprecated elements from the API
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Fri, 23 Oct 2015 20:23:00 +0200
parents 260e3cdf11ec
children 906a5f6e07cc
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java	Fri Oct 23 20:22:44 2015 +0200
+++ b/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java	Fri Oct 23 20:23:00 2015 +0200
@@ -254,21 +254,6 @@
     }
 
     /**
-     * Temporary method during API evolution, supports debugger integration.
-     */
-    @Deprecated
-    public static void run(Source source) throws IOException {
-        PolyglotEngine vm = PolyglotEngine.buildNew().build();
-        assert vm.getLanguages().containsKey("application/x-sl");
-        vm.eval(source);
-        Value main = vm.findGlobalSymbol("main");
-        if (main == null) {
-            throw new SLException("No function main() defined in SL source file.");
-        }
-        main.invoke(null);
-    }
-
-    /**
      * Parse and run the specified SL source. Factored out in a separate method so that it can also
      * be used by the unit test harness.
      */