From 1d6a26bf1deb30c9b3a1f409b56a0574f52d7bea Mon Sep 17 00:00:00 2001 From: Tadgh Date: Sat, 1 Aug 2020 11:49:07 -0700 Subject: [PATCH] Remove unused method --- .../uhn/fhir/jpa/empi/dao/EmpiLinkDaoSvc.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/hapi-fhir-jpaserver-empi/src/main/java/ca/uhn/fhir/jpa/empi/dao/EmpiLinkDaoSvc.java b/hapi-fhir-jpaserver-empi/src/main/java/ca/uhn/fhir/jpa/empi/dao/EmpiLinkDaoSvc.java index 364fe21d0d9..c4d924abecb 100644 --- a/hapi-fhir-jpaserver-empi/src/main/java/ca/uhn/fhir/jpa/empi/dao/EmpiLinkDaoSvc.java +++ b/hapi-fhir-jpaserver-empi/src/main/java/ca/uhn/fhir/jpa/empi/dao/EmpiLinkDaoSvc.java @@ -30,7 +30,6 @@ import ca.uhn.fhir.jpa.dao.data.IEmpiLinkDao; import ca.uhn.fhir.jpa.dao.index.IdHelperService; import ca.uhn.fhir.jpa.entity.EmpiLink; import org.hl7.fhir.instance.model.api.IBaseResource; -import org.hl7.fhir.instance.model.api.IIdType; import org.slf4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Example; @@ -259,24 +258,6 @@ public class EmpiLinkDaoSvc { return deleteEmpiLinksAndReturnPersonPids(allOfType); } - /** - * Given a target type, and a resource ID, delete the target's {@link EmpiLink} entities, and return the Person Pids - * that were on the source end of each relationship. - * - * @param theTargetType The empi target type of the resource - * @param theId The particular target resource ID. - * - * @return A list of longs, each representing the source person of an {@link EmpiLink} that was deleted. - */ - public List deleteEmpiLinksAndReturnPersonPidsForTypeAndTarget(String theTargetType, IIdType theId) { - EmpiLink link = new EmpiLink(); - link.setEmpiTargetType(theTargetType); - link.setTargetPid(myIdHelperService.getPidOrThrowException(theId)); - Example exampleLink = Example.of(link); - List allOfType = myEmpiLinkDao.findAll(exampleLink); - return deleteEmpiLinksAndReturnPersonPids(allOfType); - } - /** * Persist an EmpiLink to the database. *