Removing dead code

Small change to remove dead code that triggers warnings in some editors/code analyzers. No change of functionality.