Bananas add moisture and flavor to the cake. If you omit them, you'll need to adjust the recipe, perhaps by adding more pineapple or using applesauce as a substitute.