Removed some deprecated methods when using wx 2.9