File tree Expand file tree Collapse file tree 3 files changed +1
-18
lines changed
Expand file tree Collapse file tree 3 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import play.api.libs.json.Json._
1717import play .api .libs .json ._
1818import play .api .libs .ws .{Response , WS }
1919import play .api .libs .functional .syntax ._
20- import play .api .mvc .{ Action , MultipartFormData , Result , SimpleResult }
20+ import play .api .mvc .MultipartFormData
2121import services ._
2222
2323import scala .collection .mutable .ListBuffer
Original file line number Diff line number Diff 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- }
Original file line number Diff line number Diff 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-
320313object ExtractorsForInstanceDAO extends ModelCompanion [ExtractorsForInstance , ObjectId ] {
321314 val dao = current.plugin[MongoSalatPlugin ] match {
322315 case None => throw new RuntimeException (" No MongoSalatPlugin" );
You can’t perform that action at this time.
0 commit comments