changeset 19438:4205f4220e41

Remove unused methods
author alanb
date Mon, 03 Apr 2017 14:57:56 +0100
parents 415d9fa6fe82
children 1655ceeb9ba3
files src/java.base/share/classes/java/lang/System.java src/java.base/share/classes/jdk/internal/misc/JavaLangAccess.java src/java.base/share/classes/jdk/internal/module/Modules.java
diffstat 3 files changed, 0 insertions(+), 34 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/System.java	Thu Mar 30 18:33:56 2017 +0100
+++ b/src/java.base/share/classes/java/lang/System.java	Mon Apr 03 14:57:56 2017 +0100
@@ -2112,18 +2112,12 @@
             public void addReadsAllUnnamed(Module m) {
                 m.implAddReadsAllUnnamed();
             }
-            public void addExports(Module m, String pn) {
-                m.implAddExports(pn);
-            }
             public void addExports(Module m, String pn, Module other) {
                 m.implAddExports(pn, other);
             }
             public void addExportsToAllUnnamed(Module m, String pn) {
                 m.implAddExportsToAllUnnamed(pn);
             }
-            public void addOpens(Module m, String pn) {
-                m.implAddOpens(pn);
-            }
             public void addOpens(Module m, String pn, Module other) {
                 m.implAddOpens(pn, other);
             }
--- a/src/java.base/share/classes/jdk/internal/misc/JavaLangAccess.java	Thu Mar 30 18:33:56 2017 +0100
+++ b/src/java.base/share/classes/jdk/internal/misc/JavaLangAccess.java	Mon Apr 03 14:57:56 2017 +0100
@@ -209,11 +209,6 @@
     void addReadsAllUnnamed(Module m);
 
     /**
-     * Update module m to export a package to all modules.
-     */
-    void addExports(Module m, String pn);
-
-    /**
      * Updates module m1 to export a package to module m2. The export does
      * not result in a strong reference to m2 (m2 can be GC'ed).
      */
@@ -225,11 +220,6 @@
     void addExportsToAllUnnamed(Module m, String pkg);
 
     /**
-     * Updates a module m to open a package to all modules.
-     */
-    void addOpens(Module m, String pkg);
-
-    /**
      * Updates module m1 to open a package to module m2. Opening the
      * package does not result in a strong reference to m2 (m2 can be GC'ed).
      */
--- a/src/java.base/share/classes/jdk/internal/module/Modules.java	Thu Mar 30 18:33:56 2017 +0100
+++ b/src/java.base/share/classes/jdk/internal/module/Modules.java	Mon Apr 03 14:57:56 2017 +0100
@@ -83,15 +83,6 @@
     }
 
     /**
-     * Update module m to export a package to all modules.
-     *
-     * This method is for intended for use by tests only.
-     */
-    public static void addExports(Module m, String pn) {
-        JLA.addExports(m, pn);
-    }
-
-    /**
      * Updates module m1 to export a package to module m2.
      * Same as m1.addExports(pn, m2) but without a caller check
      */
@@ -107,15 +98,6 @@
     }
 
     /**
-     * Update module m to open a package to all modules.
-     *
-     * This method is for intended for use by tests only.
-     */
-    public static void addOpens(Module m, String pn) {
-        JLA.addOpens(m, pn);
-    }
-
-    /**
      * Updates module m1 to open a package to module m2.
      * Same as m1.addOpens(pn, m2) but without a caller check.
      */