From b171f490cd17278aeb4db7847f6dc795e629226c Mon Sep 17 00:00:00 2001 From: Tracy Hires Date: Mon, 28 Aug 2023 12:57:39 -0600 Subject: [PATCH] more code cleanup --- .../org/camunda/dmn/parser/DmnParser.scala | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/src/main/scala/org/camunda/dmn/parser/DmnParser.scala b/src/main/scala/org/camunda/dmn/parser/DmnParser.scala index 7de56b22..3cac8558 100644 --- a/src/main/scala/org/camunda/dmn/parser/DmnParser.scala +++ b/src/main/scala/org/camunda/dmn/parser/DmnParser.scala @@ -344,31 +344,6 @@ class DmnParser( } } - private def createReferenceForImportedBkm(importedModel: ImportedModel, reference: ModelReference)( - implicit - ctx: ParsingContext): ImportedBusinessKnowledgeModel = { - ImportedBusinessKnowledgeModel(dmnRepository, reference.namespace, reference.id, Some(importedModel.name)) - // ImportedBusinessKnowledgeModel(() => { - // // todo: extract loading, try to move to evaluation phase - // dmnRepository.getBusinessKnowledgeModel( - // namespace = reference.namespace, - // bkmId = reference.id - // ) match { - // case Right(bkm) => EmbeddedBusinessKnowledgeModel( - // id = reference.id, - // // todo: replace the hack to add the namespace to the name - // name = s"${importedModel.name}.${bkm.name}", - // logic = bkm.logic, - // parameters = bkm.parameters, - // requiredBkms = bkm.requiredBkms - // ) - // case Left(failure) => - // ctx.failures += Failure(failure.message) - // EmbeddedBusinessKnowledgeModel(reference.id, "", EmptyLogic, Iterable.empty, Iterable.empty) - // } - // }) - } - private def parseBusinessKnowledgeModel(bkm: BusinessKnowledgeModel)( implicit ctx: ParsingContext): ParsedBusinessKnowledgeModelReference = {