diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-18 23:40:51 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-18 23:40:51 +0000 |
commit | 8517e8ce453d6e394aa76e1a5cb5e2d4d36b1b53 (patch) | |
tree | a0d532c0bce980f6b0cb8b22fd30cfc6594d32d5 /sources | |
parent | 5db349a7bd6f862dc35d808177fb37f34a906f0d (diff) | |
download | scala-8517e8ce453d6e394aa76e1a5cb5e2d4d36b1b53.tar.gz scala-8517e8ce453d6e394aa76e1a5cb5e2d4d36b1b53.tar.bz2 scala-8517e8ce453d6e394aa76e1a5cb5e2d4d36b1b53.zip |
- Removed method Definitions.getModule(Stringm ...
- Removed method Definitions.getModule(Stringm boolean)
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/symtab/Definitions.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sources/scalac/symtab/Definitions.java b/sources/scalac/symtab/Definitions.java index 68b92e7731..3c49e4b24b 100644 --- a/sources/scalac/symtab/Definitions.java +++ b/sources/scalac/symtab/Definitions.java @@ -737,7 +737,7 @@ public class Definitions { // Public Methods /** Returns the symbol of the module with the given fullname. */ - public Symbol getModule(String fullname, boolean fail) { + public Symbol getModule(String fullname) { Scope scope = ROOT_CLASS.members(); int i = 0; int j = fullname.indexOf('.', i); @@ -756,16 +756,9 @@ public class Definitions { if ((sym = alts[k]).isModule()) break; } } - if (fail) - assert sym.isModule() : "no module '" + fullname + "'"; return sym; } - /** Returns the symbol of the module with the given fullname. */ - public Symbol getModule(String fullname) { - return getModule(fullname, true); - } - /** Returns the symbol of the class with the given fullname. */ public Symbol getClass(String fullname) { Scope scope = ROOT_CLASS.members(); |