Commit 1109e39d authored by agurov's avatar agurov

Remove unused code in the InaccessibleLocationDataHelper class (bug 483231)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=483231

git-svn-id: https://dev.eclipse.org/svnroot/technology/org.eclipse.subversive/trunk@21515 ee007c2a-0a25-0410-9ab9-bf268980928c
parent 61cf20d1
......@@ -64,7 +64,6 @@ public class SVNTeamProvider extends RepositoryProvider implements IConnectedPro
protected IRepositoryLocation location;
protected IRepositoryResource resource;
protected String relocatedTo;
protected String locationId;
protected int errorCode;
protected int state;
......@@ -163,7 +162,6 @@ public class SVNTeamProvider extends RepositoryProvider implements IConnectedPro
protected void restoreLocation() throws HiddenException {
if (this.state == 0) {
this.location = null;
this.locationId = null;
if ((this.errorCode = this.uploadRepositoryLocation()) == ErrorDescription.SUCCESS ||
(this.errorCode = this.acquireResolution(false)) == ErrorDescription.SUCCESS) {
return;
......@@ -177,7 +175,6 @@ public class SVNTeamProvider extends RepositoryProvider implements IConnectedPro
protected synchronized void connectToProject() throws HiddenException {
if (this.state == 0) {
this.location = null;
this.locationId = null;
this.resource = null;
this.relocatedTo = null;
if ((this.errorCode = this.uploadRepositoryResource()) == ErrorDescription.SUCCESS ||
......@@ -201,7 +198,7 @@ public class SVNTeamProvider extends RepositoryProvider implements IConnectedPro
context = new Object[] {this.getProject(), this.relocatedTo, this.location};
}
else if (this.errorCode == ErrorDescription.CANNOT_READ_LOCATION_DATA) {
context = new Object[] {this.getProject(), this.relocatedTo, this.locationId};
context = new Object[] {this.getProject(), this.relocatedTo};
}
else {
context = this.getProject();
......@@ -348,7 +345,6 @@ public class SVNTeamProvider extends RepositoryProvider implements IConnectedPro
if (this.location == null) {
return ErrorDescription.CANNOT_READ_LOCATION_DATA;
}
this.locationId = this.location.getId();
if (SVNRemoteStorage.instance().getRepositoryLocation(this.location.getId()) == null) {
return ErrorDescription.REPOSITORY_LOCATION_IS_DISCARDED;
}
......
......@@ -63,13 +63,8 @@ public class InaccessibleLocationDataHelper implements IResolutionHelper {
0);
solved[0] = dlg.open() == 0;
if (solved[0]) {
String locationId = (String)context[2];
location[0] =
locationId == null ?
SVNRemoteStorage.instance().newRepositoryLocation() :
SVNRemoteStorage.instance().newRepositoryLocation(locationId);
location[0].setUrl((String)context[1]);
location[0] = SVNRemoteStorage.instance().newRepositoryLocation();
location[0].setUrl((String)context[1]);
NewRepositoryLocationWizard wizard = new NewRepositoryLocationWizard(location[0], false);
WizardDialog dialog = new WizardDialog(UIMonitorUtility.getShell(), wizard);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment