MACOSX: Remove wrapper functions for pasteboard access

Instead the OSystem functions are now directly implemented in
Objective C.
This commit is contained in:
Thierry Crozat 2023-02-25 22:36:48 +01:00 committed by Eugene Sandulenko
parent 41bb796ef6
commit 3596dce56d
4 changed files with 73 additions and 88 deletions

View file

@ -164,18 +164,6 @@ bool OSystem_MacOSX::displayLogFile() {
return err != noErr;
}
bool OSystem_MacOSX::hasTextInClipboard() {
return hasTextInClipboardMacOSX();
}
Common::U32String OSystem_MacOSX::getTextFromClipboard() {
return getTextFromClipboardMacOSX();
}
bool OSystem_MacOSX::setTextInClipboard(const Common::U32String &text) {
return setTextInClipboardMacOSX(text);
}
bool OSystem_MacOSX::openUrl(const Common::String &url) {
CFURLRef urlRef = CFURLCreateWithBytes (NULL, (const UInt8*)url.c_str(), url.size(), kCFStringEncodingASCII, NULL);
OSStatus err = LSOpenCFURLRef(urlRef, NULL);