sm: remove unneeded code