Core/Misc: Get rid of some useless code