From 64de9beadba0bdc59371941b505eeaa42968cf33 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Thu, 22 Sep 2016 16:54:33 +0200 Subject: [PATCH] RepositoryCache#unregisterAndCloseRepository: Remove unused db parameter Change-Id: Ibee48cba85089324dc8db45066d311ad5db4f3ee Signed-off-by: David Pursehouse --- .../src/org/eclipse/jgit/lib/RepositoryCache.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java index 2e0ed16a55..e5a0553ab4 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java @@ -150,7 +150,7 @@ public class RepositoryCache { public static void close(@NonNull final Repository db) { if (db.getDirectory() != null) { FileKey key = FileKey.exact(db.getDirectory(), db.getFS()); - cache.unregisterAndCloseRepository(key, db); + cache.unregisterAndCloseRepository(key); } } @@ -302,8 +302,7 @@ public class RepositoryCache { && (System.currentTimeMillis() - db.closedAt.get() > expireAfter); } - private void unregisterAndCloseRepository(final Key location, - Repository db) { + private void unregisterAndCloseRepository(final Key location) { synchronized (lockFor(location)) { Repository oldDb = unregisterRepository(location); if (oldDb != null) { -- 2.39.5