Remove unused locals