diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-13 14:47:25 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-13 15:29:33 -0500 |
commit | 4b7aec94eaf1200f4ac19a755af8b8cf8601f5d6 (patch) | |
tree | 7119093e9dc0df2569baf71703afe145e8e79c60 /stage2/Stage2.scala | |
parent | ff6856395499853f3dc10723a0c722ee4c33fed7 (diff) | |
download | cbt-4b7aec94eaf1200f4ac19a755af8b8cf8601f5d6.tar.gz cbt-4b7aec94eaf1200f4ac19a755af8b8cf8601f5d6.tar.bz2 cbt-4b7aec94eaf1200f4ac19a755af8b8cf8601f5d6.zip |
small refactoring simplifying Stage2
Diffstat (limited to 'stage2/Stage2.scala')
-rw-r--r-- | stage2/Stage2.scala | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/stage2/Stage2.scala b/stage2/Stage2.scala index 34128ac..b7b6d33 100644 --- a/stage2/Stage2.scala +++ b/stage2/Stage2.scala @@ -2,13 +2,8 @@ package cbt import java.io._ object Stage2 extends Stage2Base{ - def getBuild(__context: java.lang.Object, _cbtChanged: java.lang.Boolean) = { - val _context = __context.asInstanceOf[Context] - val context = _context.copy( - cbtHasChanged = _context.cbtHasChanged || _cbtChanged - ) - val first = new Lib(context.logger).loadRoot( context ) - first.finalBuild + def getBuild(context: Context) = { + new Lib( context.logger ).loadRoot( context ).finalBuild } def run( args: Stage2Args ): Unit = { |