Logic

First I threw away the outside and cooked the inside then I ate the outside and threw away the inside. What did I eat?