1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

cleanup of equals()

This commit is contained in:
David McKnight 2006-11-07 12:15:47 +00:00
parent b4a365e1ab
commit 78a62f47b4

View file

@ -41,8 +41,6 @@ import org.eclipse.rse.subsystems.files.core.model.RemoteFileFilterString;
import org.eclipse.rse.subsystems.files.core.model.SystemFileTransferModeRegistry;
import org.eclipse.rse.ui.ISystemPreferencesConstants;
import org.eclipse.rse.ui.RSEUIPlugin;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
/**
@ -1125,10 +1123,7 @@ public abstract class RemoteFile implements IRemoteFile, IAdaptable, Comparable
String otherPath = other.getAbsolutePath();
String path = this.getAbsolutePath();
String otherHost = other.getHostName();
String otherHostAlias = other.getParentRemoteFileSubSystem().getHostAliasName();
return getHostName().equals(otherHost) && (path.equals(otherPath) || otherPath.equals(path));
//return getParentRemoteFileSubSystem().getHostAliasName().equals(otherHostAlias);
return getHostName().equals(otherHost) && path.equals(otherPath);
}
else
{