From 05c0213547f29842bbae6faaf77e983a364d4a2e Mon Sep 17 00:00:00 2001 From: Ellen Spertus Date: Sun, 12 Aug 2018 18:41:27 -0700 Subject: Added back file I shouldn't have deleted. --- .../main/scala/sandcrawler/CrossrefScorable.scala | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'scalding/src/main') diff --git a/scalding/src/main/scala/sandcrawler/CrossrefScorable.scala b/scalding/src/main/scala/sandcrawler/CrossrefScorable.scala index 5113b0c..667a5cc 100644 --- a/scalding/src/main/scala/sandcrawler/CrossrefScorable.scala +++ b/scalding/src/main/scala/sandcrawler/CrossrefScorable.scala @@ -64,25 +64,3 @@ class CrossrefScorable extends Scorable with HBasePipeConversions { } } } - -/* -object CrossrefScorable { - def simplifyJson(json : String) : Option[Map[String, Any]] = { - Scorable.jsonToMap(json) match { - case None => None - case Some(map) => { - if (map contains "title") { - val titles = map("title").asInstanceOf[List[String]] - if (titles.isEmpty) { - None - } else { - Some(Map("title" -> titles(0))) - } - } else { - None - } - } - } - } -} - */ -- cgit v1.2.3