[Engine] Removed a lot of unused code.