Removed redundant platform detection code.