| 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
|
|
|