[NSM] remove unused code