summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-03-18 23:40:51 +0000
committerpaltherr <paltherr@epfl.ch>2004-03-18 23:40:51 +0000
commit8517e8ce453d6e394aa76e1a5cb5e2d4d36b1b53 (patch)
treea0d532c0bce980f6b0cb8b22fd30cfc6594d32d5 /sources
parent5db349a7bd6f862dc35d808177fb37f34a906f0d (diff)
downloadscala-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.java9
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();