1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 01:35:39 +02:00

[cleanup] Fix compiler warnings

This commit is contained in:
Martin Oberhuber 2006-08-25 14:03:59 +00:00
parent c21cf8817f
commit 6666e89126

View file

@ -139,7 +139,7 @@ public class CommandEntryContentAssistProcessor implements IContentAssistProcess
if (_remoteCommand != null)
{
RemoteCmdSubSystem cmdSubsystem = (RemoteCmdSubSystem) _remoteCommand.getCommandSubSystem();
String type = cmdSubsystem.getHost().getSystemType();
//String type = cmdSubsystem.getHost().getSystemType();
if (cmdSubsystem.isWindows())
{
_isWindows = true;
@ -432,10 +432,9 @@ public class CommandEntryContentAssistProcessor implements IContentAssistProcess
private void getEnvironmentCompletions(String currentText, CompletionResults results)
{
IRemoteCmdSubSystem subsystem = _remoteCommand.getCommandSubSystem();
if (subsystem instanceof IRemoteCmdSubSystem)
IRemoteCmdSubSystem cmdSubsystem = _remoteCommand.getCommandSubSystem();
if (cmdSubsystem != null)
{
IRemoteCmdSubSystem cmdSubsystem = (IRemoteCmdSubSystem) subsystem;
List vars = cmdSubsystem.getHostEnvironmentVariables();
if (vars != null)
{
@ -469,10 +468,9 @@ public class CommandEntryContentAssistProcessor implements IContentAssistProcess
private void getCommandCompletions(String currentText, CompletionResults results)
{
IRemoteCmdSubSystem subsystem = _remoteCommand.getCommandSubSystem();
if (subsystem instanceof IRemoteCmdSubSystem)
IRemoteCmdSubSystem cmdSubsystem = _remoteCommand.getCommandSubSystem();
if (cmdSubsystem != null)
{
IRemoteCmdSubSystem cmdSubsystem = (IRemoteCmdSubSystem) subsystem;
ICandidateCommand[] cmds = cmdSubsystem.getCandidateCommands(_remoteCommand);
if (cmds != null)
{