Removing of usless code