From 9e2dd75a8c229239b59a75fe6f9ddf201946032e Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 28 Apr 2015 12:59:34 +0200 Subject: Move addrOfTree, addOfSym from CompilationUnit to Pickler. These only exist if there was a pickler, and they are not unique per CompilationUnit. --- src/dotty/tools/dotc/CompilationUnit.scala | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/dotty/tools/dotc/CompilationUnit.scala') diff --git a/src/dotty/tools/dotc/CompilationUnit.scala b/src/dotty/tools/dotc/CompilationUnit.scala index f0ce19320..f5899f0f2 100644 --- a/src/dotty/tools/dotc/CompilationUnit.scala +++ b/src/dotty/tools/dotc/CompilationUnit.scala @@ -24,18 +24,4 @@ class CompilationUnit(val source: SourceFile) { * Subsequent phases can add new sections. */ var picklers: Map[ClassSymbol, TastyPickler] = Map() - - /** TODO: I'd prefer we do not put this in CompilationUnit - * Addresses in TASTY file of trees, stored by pickling. - * Note that trees are checked for reference equality, - * so one can reliably use this function only directly after `pickler` - */ - var addrOfTree: tpd.Tree => Option[Addr] = (_ => None) - - /** TODO: I'd prefer we do not put this in CompilationUnit - * Addresses in TASTY file of symbols, stored by pickling. - * Note that trees are checked for reference equality, - * so one can reliably use this function only dirrectly after `pickler` - */ - var addrOfSym: Symbol => Option[Addr] = (_ => None) } -- cgit v1.2.3