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

@@ -46,25 +46,22 @@ export default connect(mapStateToProps, mapDispatchToProps)(props => {
props.setProviderState(props.provider, state);
};
let configButton = null;
let secondRow = 6;
if (props.allowConfig) {
const pointer = {cursor: props.MState.AllowMount ? 'pointer' : 'no-drop'};
configButton = (
<RootElem colSpan={4}
rowSpan={6}>
<img alt=''
height={'16px'}
onClick={props.MState.AllowMount ? ()=>props.displayConfiguration(props.provider, props.remote) : e=>{e.preventDefault();}}
src={configureImage}
style={{padding: 0, border: 0, margin: 0, ...pointer}}
width={'16px'}/>
</RootElem>
);
}
const pointer = {cursor: props.MState.AllowMount ? 'pointer' : 'no-drop'};
const configButton = (
<RootElem colSpan={4}
rowSpan={6}>
<img alt=''
height={'16px'}
onClick={props.MState.AllowMount ? ()=>props.displayConfiguration(props.provider, props.remote) : e=>{e.preventDefault();}}
src={configureImage}
style={{padding: 0, border: 0, margin: 0, ...pointer}}
width={'16px'}/>
</RootElem>
);
let inputColumnSpan;
let inputControls = null;
let inputControls;
if (props.Platform === 'win32') {
inputColumnSpan = 20;
const index = props.MState.DriveLetters.indexOf(props.PState.MountLocation);
@@ -181,4 +178,4 @@ export default connect(mapStateToProps, mapDispatchToProps)(props => {
</Grid>
</div>
);
});
});