Remove deprecated function.
Fix to support gcc.