summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2007-08-29 13:27:03 +0000
committerBurak Emir <emir@epfl.ch>2007-08-29 13:27:03 +0000
commit52ab7acfbf8b672831a44ad4c2f595d7bf9eb249 (patch)
treeb92f7efcbdad2f2af98e295775b8221a729c807c
parentc61168109edaaf32cf43ce6a059043ffa7370c2f (diff)
downloadscala-52ab7acfbf8b672831a44ad4c2f595d7bf9eb249.tar.gz
scala-52ab7acfbf8b672831a44ad4c2f595d7bf9eb249.tar.bz2
scala-52ab7acfbf8b672831a44ad4c2f595d7bf9eb249.zip
this file is no longer necessary, had been move...
this file is no longer necessary, had been moved into PatternNodes.scala
-rw-r--r--src/compiler/scala/tools/nsc/matching/TagIndexPair.scala28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/TagIndexPair.scala b/src/compiler/scala/tools/nsc/matching/TagIndexPair.scala
deleted file mode 100644
index 50c7221a51..0000000000
--- a/src/compiler/scala/tools/nsc/matching/TagIndexPair.scala
+++ /dev/null
@@ -1,28 +0,0 @@
-/* NSC -- new Scala compiler
- * Copyright 2006-2007 LAMP/EPFL
- * @author Burak Emir
- */
-// $Id$
-
-package scala.tools.nsc.matching
-
-object TagIndexPair {
- /** inserts tag and index, maintaining relative order of tags */
- def insert(current: TagIndexPair, tag: Int, index: Int): TagIndexPair = {
- if (current eq null)
- new TagIndexPair(tag, index, null)
- else if (tag > current.tag)
- new TagIndexPair(current.tag, current.index, insert(current.next, tag, index))
- else
- new TagIndexPair(tag, index, current)
- }
-}
-
-/** sorted, null-terminated list of (int,int) pairs */
-class TagIndexPair(val tag: Int, val index: Int, val next: TagIndexPair) {
-
- def find(tag: Int): Int =
- if (this.tag == tag) index
- else next.find(tag) // assumes argument can always be found
-
-}