Browse Source

Remove unused code from class Repository

The package-private method Repository::gitInternalSlash() is not
referenced from anywhere within the package.

Last uses were removed with
0f8743d4 "Remove deprecated Tree, TreeEntry, FileTreeEntry and friends"
6e9fdce9 "Kill GitIndex"

Signed-off-by: Rüdiger Herrmann <ruediger.herrmann@gmx.de>
Change-Id: I514bf684ad0da808f6523e9e46db9674a25e1fb5
stable-4.6
Rüdiger Herrmann 8 years ago committed by Matthias Sohn
parent
commit
1bafc304c8
  1. 9
      org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

9
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

@ -1183,15 +1183,6 @@ public abstract class Repository implements AutoCloseable {
return DirCache.lock(this, l); return DirCache.lock(this, l);
} }
static byte[] gitInternalSlash(byte[] bytes) {
if (File.separatorChar == '/')
return bytes;
for (int i=0; i<bytes.length; ++i)
if (bytes[i] == File.separatorChar)
bytes[i] = '/';
return bytes;
}
/** /**
* @return an important state * @return an important state
*/ */

Loading…
Cancel
Save