RepositoryCache#unregisterAndCloseRepository: Remove unused db parameter
Change-Id: Ibee48cba85089324dc8db45066d311ad5db4f3ee Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
e87cb80d47
commit
64de9beadb
|
@ -150,7 +150,7 @@ public static void register(final Repository db) {
|
|||
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 @@ private boolean isExpired(Repository db) {
|
|||
&& (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) {
|
||||
|
|
Loading…
Reference in New Issue