We have gotten much better at not buying stuff that we don't use just because we can get a good deal on it, and then stashing it in the pantry. The other thing is we clean out our pantry every couple of months and donate things they to the food pantry that we don't foresee using in the near future or can't remember why we bought it to begin with.
So, our pantry is in pretty good shape right now.