On a tangentially related note, there are some carnivorous plants that have evolved away from carnivory:
https://en.wikipedia.org/wiki/Nepenthes_ampullaria
> Nepenthes ampullaria has largely moved away from carnivory and acquires a substantial portion of its nutrients from digesting leaf matter that falls to the forest floor. It is thus partially detritivorous.