Remove unused code

This commit is contained in:
2020-02-13 14:08:11 -06:00
parent 19fcf896df
commit efc85c1759
5 changed files with 24 additions and 45 deletions

View File

@@ -89,22 +89,12 @@ class App extends IPCContainer {
!missingDependencies &&
!this.props.InstallActive;
const allowConfig = this.props.LocationsLookup[selectedVersion] &&
this.props.LocationsLookup[selectedVersion].config_support;
const allowSiaPrime = this.props.LocationsLookup[selectedVersion] &&
this.props.LocationsLookup[selectedVersion].siaprime_support;
const noConsoleSupported = this.props.LocationsLookup[selectedVersion] &&
this.props.LocationsLookup[selectedVersion].no_console_supported;
const remoteSupported = this.props.LocationsLookup[selectedVersion] &&
this.props.LocationsLookup[selectedVersion].supports_remote;
const showConfig = !missingDependencies &&
this.props.DisplayConfiguration &&
!this.props.RebootRequired &&
allowConfig;
!this.props.RebootRequired;
const showUpgrade = this.props.UpgradeAvailable &&
!this.props.DisplayError &&
@@ -152,10 +142,7 @@ class App extends IPCContainer {
mainContent.push((
<Box dxStyle={{padding: 'var(--default_spacing)', height: 'auto'}}
key={'md_' + key++}>
<MountItems allowConfig={allowConfig}
allowSiaPrime={allowSiaPrime}
noConsoleSupported={noConsoleSupported}
remoteSupported={remoteSupported}/>
<MountItems remoteSupported={remoteSupported}/>
</Box>
));
}