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:
parent
b4a365e1ab
commit
78a62f47b4
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue