summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java56
1 files changed, 1 insertions, 55 deletions
diff --git a/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java b/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java
index 985fec5..7afa4e3 100644
--- a/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java
+++ b/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Sony Ericsson/ST Ericsson - initial API and implementation
* Tasktop Technologies - improvements
@@ -203,8 +203,6 @@ public class GerritClient extends ReviewsClient {
private Account myAcount;
- private AccountDiffPreference myDiffPreference;
-
private Version myVersion;
private final Map<Class<? extends RemoteJsonService>, RemoteJsonService> serviceByClass;
@@ -362,29 +360,6 @@ public class GerritClient extends ReviewsClient {
return config;
}
- /**
- * @deprecated Do not use, this method is going to be removed in 2.1. See bug 413630.
- */
- @Deprecated
- public AccountDiffPreference getDiffPreference(IProgressMonitor monitor) throws GerritException {
- synchronized (this) {
- if (myDiffPreference != null) {
- return myDiffPreference;
- }
- }
- AccountDiffPreference diffPreference = execute(monitor, new Operation<AccountDiffPreference>() {
- @Override
- public void execute(IProgressMonitor monitor) throws GerritException {
- getAccountService(monitor).myDiffPreferences(this);
- }
- });
-
- synchronized (this) {
- myDiffPreference = diffPreference;
- }
- return myDiffPreference;
- }
-
public GerritSystemInfo getInfo(IProgressMonitor monitor) throws GerritException {
Version version = getCachedVersion(monitor);
List<ContributorAgreement> contributorAgreements = null;
@@ -797,20 +772,6 @@ public class GerritClient extends ReviewsClient {
return getConfiguration();
}
- /**
- * @deprecated Do not use, this method is going to be removed in 2.1. See bug 413630.
- */
- @Deprecated
- public ChangeDetail publish(String reviewId, int patchSetId, IProgressMonitor monitor) throws GerritException {
- final PatchSet.Id id = new PatchSet.Id(new Change.Id(id(reviewId)), patchSetId);
- return execute(monitor, new Operation<ChangeDetail>() {
- @Override
- public void execute(IProgressMonitor monitor) throws GerritException {
- getChangeManageService(monitor).publish(id, this);
- }
- });
- }
-
public ChangeDetail rebase(String reviewId, int patchSetId, IProgressMonitor monitor) throws GerritException {
final PatchSet.Id id = new PatchSet.Id(new Change.Id(id(reviewId)), patchSetId);
return execute(monitor, new Operation<ChangeDetail>() {
@@ -845,21 +806,6 @@ public class GerritClient extends ReviewsClient {
}
}
- /**
- * @deprecated Do not use, this method is going to be removed in 2.1. See bug 413630.
- */
- @Deprecated
- public ChangeDetail revert(String reviewId, int patchSetId, final String message, IProgressMonitor monitor)
- throws GerritException {
- final PatchSet.Id id = new PatchSet.Id(new Change.Id(id(reviewId)), patchSetId);
- return execute(monitor, new Operation<ChangeDetail>() {
- @Override
- public void execute(IProgressMonitor monitor) throws GerritException {
- getChangeManageService(monitor).revertChange(id, message, this);
- }
- });
- }
-
public ChangeDetail submit(String reviewId, int patchSetId, IProgressMonitor monitor) throws GerritException {
final PatchSet.Id id = new PatchSet.Id(new Change.Id(id(reviewId)), patchSetId);
if (hasJsonRpcApi(monitor)) {