Remove unused pad function