Remove unused code from plugin. [minor]