]> source.dussan.org Git - jgit.git/commitdiff
Remove unnecessary flush calls from LockFile 86/1886/2
authorShawn O. Pearce <spearce@spearce.org>
Thu, 11 Nov 2010 01:30:43 +0000 (17:30 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 12 Nov 2010 21:38:13 +0000 (13:38 -0800)
Change-Id: I144af9db4714acabd796880be73bd50d84b92efe
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java

index fc464cefe947cfd625262eb4686760bf10ec631c..6199f4c45065edc58f7db24e3af68e1603483dc8 100644 (file)
@@ -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();