mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 10:15: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)
|
if (_remoteCommand != null)
|
||||||
{
|
{
|
||||||
RemoteCmdSubSystem cmdSubsystem = (RemoteCmdSubSystem) _remoteCommand.getCommandSubSystem();
|
RemoteCmdSubSystem cmdSubsystem = (RemoteCmdSubSystem) _remoteCommand.getCommandSubSystem();
|
||||||
String type = cmdSubsystem.getHost().getSystemType();
|
//String type = cmdSubsystem.getHost().getSystemType();
|
||||||
if (cmdSubsystem.isWindows())
|
if (cmdSubsystem.isWindows())
|
||||||
{
|
{
|
||||||
_isWindows = true;
|
_isWindows = true;
|
||||||
|
@ -432,10 +432,9 @@ public class CommandEntryContentAssistProcessor implements IContentAssistProcess
|
||||||
|
|
||||||
private void getEnvironmentCompletions(String currentText, CompletionResults results)
|
private void getEnvironmentCompletions(String currentText, CompletionResults results)
|
||||||
{
|
{
|
||||||
IRemoteCmdSubSystem subsystem = _remoteCommand.getCommandSubSystem();
|
IRemoteCmdSubSystem cmdSubsystem = _remoteCommand.getCommandSubSystem();
|
||||||
if (subsystem instanceof IRemoteCmdSubSystem)
|
if (cmdSubsystem != null)
|
||||||
{
|
{
|
||||||
IRemoteCmdSubSystem cmdSubsystem = (IRemoteCmdSubSystem) subsystem;
|
|
||||||
List vars = cmdSubsystem.getHostEnvironmentVariables();
|
List vars = cmdSubsystem.getHostEnvironmentVariables();
|
||||||
if (vars != null)
|
if (vars != null)
|
||||||
{
|
{
|
||||||
|
@ -469,10 +468,9 @@ public class CommandEntryContentAssistProcessor implements IContentAssistProcess
|
||||||
|
|
||||||
private void getCommandCompletions(String currentText, CompletionResults results)
|
private void getCommandCompletions(String currentText, CompletionResults results)
|
||||||
{
|
{
|
||||||
IRemoteCmdSubSystem subsystem = _remoteCommand.getCommandSubSystem();
|
IRemoteCmdSubSystem cmdSubsystem = _remoteCommand.getCommandSubSystem();
|
||||||
if (subsystem instanceof IRemoteCmdSubSystem)
|
if (cmdSubsystem != null)
|
||||||
{
|
{
|
||||||
IRemoteCmdSubSystem cmdSubsystem = (IRemoteCmdSubSystem) subsystem;
|
|
||||||
ICandidateCommand[] cmds = cmdSubsystem.getCandidateCommands(_remoteCommand);
|
ICandidateCommand[] cmds = cmdSubsystem.getCandidateCommands(_remoteCommand);
|
||||||
if (cmds != null)
|
if (cmds != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue