Remove outdated code

Installer claims that minimal required PHP version is 5.3, so this PR removes some of the code not used anymore.