Skip to content

Commit a690545

Browse files
committed
Remove leftover code from failed attempt
1 parent 8c90d28 commit a690545

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

app/api/Extractions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import play.api.libs.json.Json._
1717
import play.api.libs.json._
1818
import play.api.libs.ws.{Response, WS}
1919
import play.api.libs.functional.syntax._
20-
import play.api.mvc.{Action, MultipartFormData, Result, SimpleResult}
20+
import play.api.mvc.MultipartFormData
2121
import services._
2222

2323
import scala.collection.mutable.ListBuffer

app/models/Extraction.scala

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,3 @@ object ExtractorsLabel {
215215
(JsPath \ "extractors").read[List[String]].orElse(Reads.pure(List.empty))
216216
)(ExtractorsLabel.apply _)
217217
}
218-
219-
case class LabelAssignment (
220-
extractorId: UUID,
221-
labelId: UUID
222-
)
223-
224-
object LabelAssignment {
225-
implicit val writes = Json.writes[LabelAssignment]
226-
implicit val reads = Json.reads[LabelAssignment]
227-
}

app/services/mongodb/MongoDBExtractorService.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -310,13 +310,6 @@ object ExtractorsLabelDAO extends ModelCompanion[ExtractorsLabel, ObjectId] {
310310
}
311311
}
312312

313-
object LabelAssignmentDAO extends ModelCompanion[LabelAssignment, ObjectId] {
314-
val dao = current.plugin[MongoSalatPlugin] match {
315-
case None => throw new RuntimeException("No MongoSalatPlugin");
316-
case Some(x) => new SalatDAO[LabelAssignment, ObjectId](collection = x.collection("extractors.labels.assignments")) {}
317-
}
318-
}
319-
320313
object ExtractorsForInstanceDAO extends ModelCompanion[ExtractorsForInstance, ObjectId] {
321314
val dao = current.plugin[MongoSalatPlugin] match {
322315
case None => throw new RuntimeException("No MongoSalatPlugin");

0 commit comments

Comments
 (0)