silverstripe/sapphire — pull request #343 by halkyon (2012-04-18 11:24:06+00:00)
Title: Remove calls to deprecated Object static methods, update ConfigTest

Remove all the deprecated calls to `Object::set_static()`, `Object::uninherited()` etc which are deprecated.

Replace entirely with the Config system instead. This seems to improve performance somewhat, as `Deprecation::notice()` would call version_compare() a *lot*.

Especially important was a call to `Object::set_uninherited()` which didn't do anything, but it relied on setting `permissionCache`. This also fixes that, so the cache is actually used now.