Removing superfluous platform specific code