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

Unified Diff: Source/WTF/wtf/text/StringImpl.cpp

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
« no previous file with comments | « Source/WTF/wtf/text/StringImpl.h ('k') | Source/WTF/wtf/text/WTFString.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WTF/wtf/text/StringImpl.cpp
diff --git a/Source/WTF/wtf/text/StringImpl.cpp b/Source/WTF/wtf/text/StringImpl.cpp
index b59e62d9f83bb3e84ae9096733ac94c6c362e841..28fcee793aa62f6b093b9f0b9431b18e5c1fdf3c 100644
--- a/Source/WTF/wtf/text/StringImpl.cpp
+++ b/Source/WTF/wtf/text/StringImpl.cpp
@@ -137,14 +137,6 @@ StringImpl::~StringImpl()
fastFree(const_cast<LChar*>(m_data8));
return;
}
-#if PLATFORM(QT)
- if (ownership == BufferAdoptedQString) {
- if (!m_qStringData->ref.deref())
- QStringData::deallocate(m_qStringData);
- return;
- }
-#endif
-
ASSERT(ownership == BufferSubstring);
ASSERT(m_substringBuffer);
m_substringBuffer->deref();
@@ -1903,18 +1895,6 @@ PassRefPtr<StringImpl> StringImpl::adopt(StringBuffer<UChar>& buffer)
return adoptRef(new StringImpl(buffer.release(), length));
}
-#if PLATFORM(QT)
-PassRefPtr<StringImpl> StringImpl::adopt(QStringData* qStringData)
-{
- ASSERT(qStringData);
-
- if (!qStringData->size)
- return empty();
-
- return adoptRef(new StringImpl(qStringData, ConstructAdoptedQString));
-}
-#endif
-
PassRefPtr<StringImpl> StringImpl::createWithTerminatingNullCharacter(const StringImpl& string)
{
// Use createUninitialized instead of 'new StringImpl' so that the string and its buffer
« no previous file with comments | « Source/WTF/wtf/text/StringImpl.h ('k') | Source/WTF/wtf/text/WTFString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698