Index: Source/WebCore/platform/mac/SharedBufferMac.mm |
diff --git a/Source/WebCore/platform/mac/SharedBufferMac.mm b/Source/WebCore/platform/mac/SharedBufferMac.mm |
index 228d69155e040eb4041ddd9a6e2083f7c6f7e3a9..f166ce4bab8a1bc84192db0f5972f5b000167ce3 100644 |
--- a/Source/WebCore/platform/mac/SharedBufferMac.mm |
+++ b/Source/WebCore/platform/mac/SharedBufferMac.mm |
@@ -49,12 +49,8 @@ using namespace WebCore; |
{ |
#if !USE(WEB_THREAD) |
JSC::initializeThreading(); |
-#if PLATFORM(QT) && USE(QTKIT) |
- WTF::initializeMainThread(); |
-#else |
WTF::initializeMainThreadToProcessMainThread(); |
#endif |
-#endif // !USE(WEB_THREAD) |
WebCoreObjCFinalizeOnMainThread(self); |
} |
@@ -114,14 +110,5 @@ CFDataRef SharedBuffer::createCFData() |
return (CFDataRef)RetainPtr<WebCoreSharedBufferData>(AdoptNS, [[WebCoreSharedBufferData alloc] initWithSharedBuffer:this]).leakRef(); |
} |
-#if !(PLATFORM(QT) && USE(QTKIT)) |
-PassRefPtr<SharedBuffer> SharedBuffer::createWithContentsOfFile(const String& filePath) |
-{ |
- NSData *resourceData = [NSData dataWithContentsOfFile:filePath]; |
- if (resourceData) |
- return SharedBuffer::wrapNSData(resourceData); |
- return 0; |
-} |
-#endif |
} |