From e6706d1e8d73f97ba519f0345f46a8ec2fab4b8e Mon Sep 17 00:00:00 2001 From: Sarunas Valaskevicius Date: Fri, 25 Sep 2015 14:00:27 +0100 Subject: [PATCH 1/2] remove unused code --- src/dotty/tools/dotc/core/Symbols.scala | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala index 2b4f806dd3ee..100f87a54fda 100644 --- a/src/dotty/tools/dotc/core/Symbols.scala +++ b/src/dotty/tools/dotc/core/Symbols.scala @@ -47,13 +47,6 @@ trait Symbols { this: Context => // ---- Symbol creation methods ---------------------------------- - /** Create a symbol from a function producing its denotation */ - def newSymbolDenoting[N <: Name](denotFn: Symbol => SymDenotation, coord: Coord = NoCoord): Symbol { type ThisName = N } = { - val sym = newNakedSymbol[N](coord) - sym.denot = denotFn(sym) - sym - } - /** Create a symbol from its fields (info may be lazy) */ def newSymbol[N <: Name]( owner: Symbol, From 791253b02998fc97f0b93c5d69f31d3b3e3745ab Mon Sep 17 00:00:00 2001 From: Sarunas Valaskevicius Date: Fri, 25 Sep 2015 16:51:25 +0100 Subject: [PATCH 2/2] add pos_companions to the suite --- test/dotc/tests.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index b8423db38969..403a99a190b3 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -93,6 +93,7 @@ class tests extends CompilerTest { @Test def pos_packageObj = compileFile(posDir, "i0239", twice) @Test def pos_anonClassSubtyping = compileFile(posDir, "anonClassSubtyping", twice) @Test def pos_extmethods = compileFile(posDir, "extmethods", twice) + @Test def pos_companions = compileFile(posDir, "companions", twice) @Test def pos_all = compileFiles(posDir) // twice omitted to make tests run faster