Removed unused code in the WinRT provider.