safe: remove unused code