From b09f75185b932d6744ef7142cd679569ec5b98a1 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Tue, 2 Feb 2016 18:37:32 +0300 Subject: [PATCH] git: cleanup: remove some unused deprecated methods --- .../history/browser/SymbolicRefs.java | 51 +------------------ 1 file changed, 2 insertions(+), 49 deletions(-) diff --git a/plugins/git4idea/src/git4idea/history/browser/SymbolicRefs.java b/plugins/git4idea/src/git4idea/history/browser/SymbolicRefs.java index ce1bf92bef6b..f26d53f3d130 100644 --- a/plugins/git4idea/src/git4idea/history/browser/SymbolicRefs.java +++ b/plugins/git4idea/src/git4idea/history/browser/SymbolicRefs.java @@ -13,44 +13,21 @@ package git4idea.history.browser; import git4idea.GitBranch; -import git4idea.history.wholeTree.AbstractHash; -import org.jetbrains.annotations.Nullable; -import java.util.Collection; import java.util.TreeSet; -/** - * @author irengrig - */ +@Deprecated public class SymbolicRefs implements SymbolicRefsI { private GitBranch myCurrent; private final TreeSet myLocalBranches; private final TreeSet myRemoteBranches; - private String myTrackedRemoteName; private String myUsername; - private AbstractHash myHeadHash; public SymbolicRefs() { myLocalBranches = new TreeSet(); myRemoteBranches = new TreeSet(); } - public void addRemote(final String branch) { - myRemoteBranches.add(branch); - } - - public void addLocal(final String branch) { - myLocalBranches.add(branch); - } - - public void addLocals(final Collection value) { - myLocalBranches.addAll(value); - } - - public void addRemotes(final Collection value) { - myRemoteBranches.addAll(value); - } - public TreeSet getLocalBranches() { return myLocalBranches; } @@ -59,12 +36,6 @@ public class SymbolicRefs implements SymbolicRefsI { return myRemoteBranches; } - @Override - @Nullable - public String getCurrentName() { - return myCurrent == null ? null : myCurrent.getName(); - } - @Override public GitBranch getCurrent() { return myCurrent; @@ -86,15 +57,6 @@ public class SymbolicRefs implements SymbolicRefsI { myRemoteBranches.clear(); } - public void setTrackedRemote(String trackedRemoteName) { - myTrackedRemoteName = trackedRemoteName; - } - - @Override - public String getTrackedRemoteName() { - return myTrackedRemoteName; - } - @Override public String getUsername() { return myUsername; @@ -104,16 +66,7 @@ public class SymbolicRefs implements SymbolicRefsI { myUsername = username; } - public void setHead(AbstractHash hash) { - myHeadHash = hash; - } - - @Override - public AbstractHash getHeadHash() { - return myHeadHash; - } - - public static enum Kind { + public enum Kind { TAG, LOCAL, REMOTE