summaryrefslogtreecommitdiff
path: root/plugins/git4idea/src/git4idea/GitUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/git4idea/src/git4idea/GitUtil.java')
-rw-r--r--plugins/git4idea/src/git4idea/GitUtil.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/plugins/git4idea/src/git4idea/GitUtil.java b/plugins/git4idea/src/git4idea/GitUtil.java
index 4ff61fb4a68b..e96d52de8ea0 100644
--- a/plugins/git4idea/src/git4idea/GitUtil.java
+++ b/plugins/git4idea/src/git4idea/GitUtil.java
@@ -102,7 +102,6 @@ public class GitUtil {
public static final String DOT_GIT = ".git";
private final static Logger LOG = Logger.getInstance(GitUtil.class);
- private static final int SHORT_HASH_LENGTH = 8;
public static final Predicate<GitBranchTrackInfo> NOT_NULL_PREDICATE = new Predicate<GitBranchTrackInfo>() {
@Override
@@ -829,17 +828,6 @@ public class GitUtil {
}
@NotNull
- public static String getShortHash(@NotNull String hash) {
- if (hash.length() == 0) return "";
- if (hash.length() == 40) return hash.substring(0, SHORT_HASH_LENGTH);
- if (hash.length() > 40) // revision string encoded with date too
- {
- return hash.substring(hash.indexOf("[") + 1, SHORT_HASH_LENGTH);
- }
- return hash;
- }
-
- @NotNull
public static String fileOrFolder(@NotNull VirtualFile file) {
if (file.isDirectory()) {
return "Folder";