From 0fd0d3970f2c5c7bbdede25ac7d42decfda6609f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 23 Aug 2018 17:26:45 -0700 Subject: clean up commented-out code in ScoreJob.scala --- scalding/src/main/scala/sandcrawler/ScoreJob.scala | 30 ---------------------- 1 file changed, 30 deletions(-) (limited to 'scalding/src/main/scala') diff --git a/scalding/src/main/scala/sandcrawler/ScoreJob.scala b/scalding/src/main/scala/sandcrawler/ScoreJob.scala index 28e9132..6d9cecd 100644 --- a/scalding/src/main/scala/sandcrawler/ScoreJob.scala +++ b/scalding/src/main/scala/sandcrawler/ScoreJob.scala @@ -28,33 +28,3 @@ class ScoreJob(args: Args) extends JobBase(args) { .map { entry => (entry.slug, entry.score, entry.json1, entry.json2) } .write(TypedTsv[(String, Int, String, String)](args("output"))) } - -/* -// Ugly hack to get non-String information into ScoreJob above. -object ScoreJob { - var scorable1 : Option[Scorable] = None - var scorable2 : Option[Scorable] = None - - def setScorable1(s : Scorable) { - scorable1 = Some(s) - } - - def getScorable1() : Scorable = { - scorable1 match { - case Some(s) => s - case None => null - } - } - - def setScorable2(s: Scorable) { - scorable2 = Some(s) - } - - def getScorable2() : Scorable = { - scorable2 match { - case Some(s) => s - case None => null - } - } -} - */ -- cgit v1.2.3