Fix an -Wunused-function warning, NFC

llvm-svn: 319938
This commit is contained in:
Vedant Kumar 2017-12-06 19:21:11 +00:00
parent 07d956149b
commit eacb0929e8
1 changed files with 22 additions and 20 deletions

View File

@ -45,26 +45,6 @@
#include "CFBundle.h"
#include "CFString.h"
static void SplitEventData(const char *data, std::vector<std::string> &elements)
{
elements.clear();
if (!data)
return;
const char *start = data;
while (*start != '\0') {
const char *token = strchr(start, ':');
if (!token) {
elements.push_back(std::string(start));
return;
}
if (token != start)
elements.push_back(std::string(start, token - start));
start = ++token;
}
}
#ifdef WITH_SPRINGBOARD
#include <CoreFoundation/CoreFoundation.h>
@ -210,6 +190,28 @@ static bool CallBoardSystemServiceOpenApplication(NSString *bundleIDNSStr,
}
#endif
#if defined(WITH_FBS) || defined(WITH_FBS)
static void SplitEventData(const char *data, std::vector<std::string> &elements)
{
elements.clear();
if (!data)
return;
const char *start = data;
while (*start != '\0') {
const char *token = strchr(start, ':');
if (!token) {
elements.push_back(std::string(start));
return;
}
if (token != start)
elements.push_back(std::string(start, token - start));
start = ++token;
}
}
#endif
#ifdef WITH_BKS
#import <Foundation/Foundation.h>
extern "C" {