remove some dead code in eCom methods.