Remove dead code
Clean-up of unused code:
- Deleted many unused functions and subroutines.
- Deleted unused variables.
- Deleted several unused components of derived types.
- Updated the use module statements.
Cleaned-up of unused code.
- I have checked that my code follows the Octopus coding standards
- I have added tests for all the new features added in this request.