diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/StdAttachments.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/StdAttachments.scala | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/StdAttachments.scala b/src/compiler/scala/tools/nsc/typechecker/StdAttachments.scala index bbd51b5564..54c665fe56 100644 --- a/src/compiler/scala/tools/nsc/typechecker/StdAttachments.scala +++ b/src/compiler/scala/tools/nsc/typechecker/StdAttachments.scala @@ -62,15 +62,6 @@ trait StdAttachments { } } - /** Checks whether there is any tree resulting from a macro expansion and associated with the current tree. - */ - object ExpandedIntoTree { - def unapply(tree: Tree): Option[Tree] = tree.attachments.get[MacroExpansionAttachment] match { - case Some(MacroExpansionAttachment(_, tree: Tree)) => Some(tree) - case _ => None - } - } - /** When present, suppresses macro expansion for the host. * This is occasionally necessary, e.g. to prohibit eta-expansion of macros. * |