From 2f6e79307de23e1920fb525ac91e3974baa4fc9c Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Wed, 10 Nov 2010 17:30:43 -0800 Subject: [PATCH] Remove unnecessary flush calls from LockFile Change-Id: I144af9db4714acabd796880be73bd50d84b92efe Signed-off-by: Shawn O. Pearce --- .../src/org/eclipse/jgit/storage/file/LockFile.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java index fc464cefe..6199f4c45 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java @@ -304,15 +304,9 @@ public class LockFile { out.write(b); } - @Override - public void flush() throws IOException { - out.flush(); - } - @Override public void close() throws IOException { try { - out.flush(); if (fsync) os.getChannel().force(true); out.close();