summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-11-01 17:43:23 +0000
committerPaul Phillips <paulp@improving.org>2010-11-01 17:43:23 +0000
commitd6b71cecda5802ffc4701f87b43929c4e3fc4127 (patch)
treed9270df6ccf852e40791477280de51e861ade060 /src/compiler
parent9b54520a8c5a4f130a1fabbb0d0e7a3ec9022f41 (diff)
downloadscala-d6b71cecda5802ffc4701f87b43929c4e3fc4127.tar.gz
scala-d6b71cecda5802ffc4701f87b43929c4e3fc4127.tar.bz2
scala-d6b71cecda5802ffc4701f87b43929c4e3fc4127.zip
Removed a disappointly small amount of code ass...
Removed a disappointly small amount of code associated with the obsolete namePos. No review.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/Symbols.scala42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Symbols.scala b/src/compiler/scala/tools/nsc/symtab/Symbols.scala
index 74d8a29fee..e0a1b13fdf 100644
--- a/src/compiler/scala/tools/nsc/symtab/Symbols.scala
+++ b/src/compiler/scala/tools/nsc/symtab/Symbols.scala
@@ -37,17 +37,6 @@ trait Symbols extends reflect.generic.Symbols { self: SymbolTable =>
"_"+nextexid
}
-/*
- type Position;
- def NoPos : Position;
- def FirstPos : Position;
- implicit def coercePosToInt(pos : Position) : Int;
- def coerceIntToPos(pos : Int) : Position;
- object RequiresIntsAsPositions {
- implicit def coerceIntToPos0(pos: Int) =
- coerceIntToPos(pos)
- }
- */
/** The class for all symbols */
abstract class Symbol(initOwner: Symbol, initPos: Position, initName: Name) extends AbsSymbol {
@@ -65,37 +54,6 @@ trait Symbols extends reflect.generic.Symbols { self: SymbolTable =>
def pos = rawpos
def setPos(pos: Position): this.type = { this.rawpos = pos; this }
- def namePos(source: BatchSourceFile) = {
- val pos: Int = this.pos.pointOrElse(-1)
- val buf = source.content
- if (pos == -1) -1
- else if (isTypeParameter) pos - name.length
- else if (isVariable || isMethod || isClass || isModule) {
- var ret = pos
- if (buf(pos) == ',') ret += 1
- else if (isClass) ret += "class".length()
- else if (isModule) ret += "object".length()
- else ret += "var".length()
- while (buf(ret).isWhitespace) ret += 1
- ret
- }
- else if (isValue) {
- if (pos < (buf.length + ("val ").length())) {
- if ((buf(pos + 0) == 'v') &&
- (buf(pos + 1) == 'a') &&
- (buf(pos + 2) == 'l') &&
- (buf(pos + 3) == ' ')) {
- var pos0 = pos + 4
- while (pos0 < buf.length && buf(pos0).isWhitespace)
- pos0 += 1
- pos0
-
- } else pos
- } else pos
- }
- else -1
- }
-
// annotations
private var rawannots: List[AnnotationInfoBase] = Nil