Fixed build failure against php-5.6.0alpha3

Removed two unused functions.