Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: Source/WebCore/platform/mac/SharedBufferMac.mm

Issue 13529026: Removing a bunch of unused platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace and compiler error on Mac. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
}
« no previous file with comments | « Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp ('k') | Source/WebCore/platform/network/NetworkStateNotifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698