From 4ee25ee1d036ae826d087bb6517d26b61270a189 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Wed, 27 May 2020 08:34:28 +1000 Subject: [PATCH] remove spurious debugging code --- .../hl7/fhir/utilities/cache/PackageCacheManager.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageCacheManager.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageCacheManager.java index c2a99edd3..8f4efe9f8 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageCacheManager.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageCacheManager.java @@ -213,13 +213,8 @@ public class PackageCacheManager { } finally { fileLock.release(); } - try { - if (!lockFile.delete()) { - lockFile.deleteOnExit(); - } - } catch (Throwable t) { - System.out.println("unable to clean up lock file for "+lockFile.getName()+": "+t.getMessage()); - // nothing + if (!lockFile.delete()) { + lockFile.deleteOnExit(); } return result; }