frame: remove some unnecessary function