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:
parent
c21cf8817f
commit
6666e89126
1 changed files with 5 additions and 7 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue