diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-01-08 21:09:32 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-01-08 21:09:32 +0100 |
commit | 94eb751d0063b80e7bca542b9c243900527f9028 (patch) | |
tree | f7c378af8a7bf5c428e268ecfd7093d16ae2a588 /src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala | |
parent | 6e4c926b4a4c5e8dd350ae3a150490a794b139ca (diff) | |
download | scala-94eb751d0063b80e7bca542b9c243900527f9028.tar.gz scala-94eb751d0063b80e7bca542b9c243900527f9028.tar.bz2 scala-94eb751d0063b80e7bca542b9c243900527f9028.zip |
Removes unnecessary generality in the macro engine
In Jan 2013, I submitted a number of pull requests that built up a foundation
for the upcoming type macros pull request. Unfortunately, type macros
ended up being rejected, but the extra generality introduced in advance
still persisted in the compiler until now.
This commit takes care of unused generality in the macro engine,
keeping the internal implementation as well as the public API clean.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala index 352ae6c8b0..cd6b77404d 100644 --- a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala +++ b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala @@ -726,10 +726,6 @@ trait ContextErrors { NormalTypeError(expandee, "too many argument lists for " + fun) } - def MacroInvalidExpansionError(expandee: Tree, role: String, allowedExpansions: String) = { - issueNormalTypeError(expandee, s"macro in $role role can only expand into $allowedExpansions") - } - def MacroIncompatibleEngineError(macroEngine: String) = { val message = s"macro cannot be expanded, because it was compiled by an incompatible macro engine $macroEngine" issueNormalTypeError(lastTreeToTyper, message) |