Fix class/struct mismatch.

Thanks, Clang.
Hide yet-unused private function on ES.