Remove unused locals

Lots of Notify and some Encode/Decode that aren't used anymore.