Quoted By:
Dumping berries at gyms is the best way to go.
>Deplete inventory in meaningful manner
>Stardust
>XP
>Gym Pokemon regains CP, increasing gym longevity
>Increase Gym points and medal
>Chance of candy
And it all resets like every 30 minutes or so.
I wish there a way to get at least some function out of revives and potions instead of just tossing, but berries are always useful.