Fix an iOS build break in Office. IOKit is an internal library on iOS, so usage of it will block deployment to the app store. Further, this method is never even called. So simply remove it.
#ifdef __APPLE__
#include <CoreFoundation/CoreFoundation.h>
-#include <IOKit/IOKitLib.h>
#include <mach-o/dyld.h>
#include <sys/syslimits.h>
#include <libgen.h>
-// This would be better than int gethostuuid(uuid_t id, const struct timespec *wait);
-void get_platform_uuid(char * buf, int bufSize)
-{
- io_registry_entry_t ioRegistryRoot = IORegistryEntryFromPath(kIOMasterPortDefault, "IOService:/");
- CFStringRef uuidCf = (CFStringRef) IORegistryEntryCreateCFProperty(ioRegistryRoot, CFSTR(kIOPlatformUUIDKey), kCFAllocatorDefault, 0);
- IOObjectRelease(ioRegistryRoot);
- CFStringGetCString(uuidCf, buf, bufSize, kCFStringEncodingMacRoman);
- CFRelease(uuidCf);
-}
-
std::string get_app_name()
{
std::vector<char> appId(PATH_MAX+1, 0);
