Removes unused code

(Commit by @systay)