summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2010-04-30 17:22:59 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2010-04-30 17:22:59 +0000
commit4758f2a87c2c069e9021bd23de4dd304d3623af7 (patch)
treee8f8ca0ffdac51b304ea2eeba8cd1d25a2201ff1
parenta514ab4fe15d237998164d7b2825260de1c6a164 (diff)
downloadscala-4758f2a87c2c069e9021bd23de4dd304d3623af7.tar.gz
scala-4758f2a87c2c069e9021bd23de4dd304d3623af7.tar.bz2
scala-4758f2a87c2c069e9021bd23de4dd304d3623af7.zip
Removed AnnotationInfos.ScalaSigBytes from refl...
Removed AnnotationInfos.ScalaSigBytes from reflect.generic, as it is an implementation detail of the compiler and shouldn't be part of a public API. Review by odersky.
-rw-r--r--src/compiler/scala/tools/nsc/symtab/AnnotationInfos.scala1
-rwxr-xr-xsrc/library/scala/reflect/generic/AnnotationInfos.scala8
2 files changed, 0 insertions, 9 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/AnnotationInfos.scala b/src/compiler/scala/tools/nsc/symtab/AnnotationInfos.scala
index edc87108b4..f2e62856d5 100644
--- a/src/compiler/scala/tools/nsc/symtab/AnnotationInfos.scala
+++ b/src/compiler/scala/tools/nsc/symtab/AnnotationInfos.scala
@@ -56,7 +56,6 @@ trait AnnotationInfos extends reflect.generic.AnnotationInfos { self: SymbolTabl
else
definitions.ScalaSignatureAnnotation.tpe
}
- object ScalaSigBytes extends ScalaSigBytesExtractor
/** Represents a nested classfile annotation */
case class NestedAnnotArg(annInfo: AnnotationInfo)
diff --git a/src/library/scala/reflect/generic/AnnotationInfos.scala b/src/library/scala/reflect/generic/AnnotationInfos.scala
index cc6c909a45..6239ca189c 100755
--- a/src/library/scala/reflect/generic/AnnotationInfos.scala
+++ b/src/library/scala/reflect/generic/AnnotationInfos.scala
@@ -20,9 +20,6 @@ trait AnnotationInfos { self: Universe =>
type ArrayAnnotArg <: ClassfileAnnotArg
val ArrayAnnotArg: ArrayAnnotArgExtractor
- type ScalaSigBytes <: ClassfileAnnotArg
- val ScalaSigBytes: ScalaSigBytesExtractor
-
type NestedAnnotArg <: ClassfileAnnotArg
val NestedAnnotArg: NestedAnnotArgExtractor
@@ -36,11 +33,6 @@ trait AnnotationInfos { self: Universe =>
def unapply(arg: ArrayAnnotArg): Option[Array[ClassfileAnnotArg]]
}
- abstract class ScalaSigBytesExtractor {
- def apply(bytes: Array[Byte]): ScalaSigBytes
- def unapply(arg: ScalaSigBytes): Option[Array[Byte]]
- }
-
abstract class NestedAnnotArgExtractor {
def apply(anninfo: AnnotationInfo): NestedAnnotArg
def unapply(arg: NestedAnnotArg): Option[AnnotationInfo]