daemon: remove some unused code Upstream-commit: 6b4f7e6b7f9f43a9a72746f09231de80bd2fcfc4 Component: engine