CE-13 Removing unused function ClearState