CLN: remove unused scope code