Remove unused parts of code.

- in directory src/system
- remove unused debug messages, methods, variables and other short parts
of unused code
Remove unused parts of code.

- in directory src/transport
- remove unused short parts of code