Remove unused static function