[refac] removed dead code