From c8dfd0086438cbbf3e719d1e2e14c4c99dee9532 Mon Sep 17 00:00:00 2001 From: Tadgh Date: Sat, 1 Aug 2020 13:09:23 -0700 Subject: [PATCH] Remove dead comments --- .../uhn/fhir/jpa/empi/svc/EmpiPersonDeletingSvc.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/hapi-fhir-jpaserver-empi/src/main/java/ca/uhn/fhir/jpa/empi/svc/EmpiPersonDeletingSvc.java b/hapi-fhir-jpaserver-empi/src/main/java/ca/uhn/fhir/jpa/empi/svc/EmpiPersonDeletingSvc.java index 6627d6977c7..dbbdc27b735 100644 --- a/hapi-fhir-jpaserver-empi/src/main/java/ca/uhn/fhir/jpa/empi/svc/EmpiPersonDeletingSvc.java +++ b/hapi-fhir-jpaserver-empi/src/main/java/ca/uhn/fhir/jpa/empi/svc/EmpiPersonDeletingSvc.java @@ -81,16 +81,12 @@ public class EmpiPersonDeletingSvc { ExpungeOptions options = new ExpungeOptions(); options.setExpungeDeletedResources(true); options.setExpungeOldVersions(true); - //myResourceExpungeService.expungeHistoricalVersionsOfIds(null, theLongs, new AtomicInteger(Integer.MAX_VALUE - 1)); - theLongs.stream() - .forEach(personId -> { - myExpungeService.expunge("Person", personId, null, options, null); - }); - //myResourceExpungeService.expungeCurrentVersionOfResources(null, theLongs, new AtomicInteger(Integer.MAX_VALUE - 1)); + theLongs + .forEach(personId -> myExpungeService.expunge("Person", personId, null, options, null)); } private void deleteCascade(Long pid, DeleteConflictList theDeleteConflictList) { - ourLog.debug("About to cascade delete: " + pid); + ourLog.debug("About to cascade delete: {}", pid); IFhirResourceDao resourceDao = myDaoRegistry.getResourceDao("Person"); resourceDao.delete(new IdType("Person/" + pid), theDeleteConflictList, null, null); }