From 531f3684ed2f7de36d916656ea3e72fd4f58e3d9 Mon Sep 17 00:00:00 2001 From: Jacob Chang Date: Mon, 12 Dec 2016 16:25:31 -0800 Subject: [PATCH] Removing module list for merging. (will need to create iterator in future) --- src/main/scala/diplomacy/LazyModule.scala | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/scala/diplomacy/LazyModule.scala b/src/main/scala/diplomacy/LazyModule.scala index 7aabd9ea..d97bbf7f 100644 --- a/src/main/scala/diplomacy/LazyModule.scala +++ b/src/main/scala/diplomacy/LazyModule.scala @@ -92,10 +92,7 @@ object LazyModule protected[diplomacy] var stack = List[LazyModule]() private var index = 0 - var module_list = List[LazyModule]() - def apply[T <: LazyModule](bc: T)(implicit sourceInfo: SourceInfo): T = { - module_list = bc :: module_list // Make sure the user put LazyModule around modules in the correct order // If this require fails, probably some grandchild was missing a LazyModule // ... or you applied LazyModule twice