From 6c2af9490927c3c5959b5cb07461b646f8b32f6c Mon Sep 17 00:00:00 2001 From: Kristian Monsen Date: Fri, 21 May 2010 16:53:46 +0100 Subject: Merge WebKit at r59636: Initial merge by git Change-Id: I59b289c4e6b18425f06ce41cc9d34c522515de91 --- JavaScriptCore/wtf/text/WTFString.cpp | 47 ----------------------------------- 1 file changed, 47 deletions(-) (limited to 'JavaScriptCore/wtf/text/WTFString.cpp') diff --git a/JavaScriptCore/wtf/text/WTFString.cpp b/JavaScriptCore/wtf/text/WTFString.cpp index a683e3d..842d755 100644 --- a/JavaScriptCore/wtf/text/WTFString.cpp +++ b/JavaScriptCore/wtf/text/WTFString.cpp @@ -37,13 +37,6 @@ using namespace WTF::Unicode; namespace WebCore { -String::String(const UChar* str, unsigned len) -{ - if (!str) - return; - m_impl = StringImpl::create(str, len); -} - String::String(const UChar* str) { if (!str) @@ -56,20 +49,6 @@ String::String(const UChar* str) m_impl = StringImpl::create(str, len); } -String::String(const char* str) -{ - if (!str) - return; - m_impl = StringImpl::create(str); -} - -String::String(const char* str, unsigned length) -{ - if (!str) - return; - m_impl = StringImpl::create(str, length); -} - void String::append(const String& str) { if (str.isEmpty()) @@ -202,13 +181,6 @@ void String::insert(const UChar* charactersToInsert, unsigned lengthToInsert, un m_impl = newImpl.release(); } -UChar String::operator[](unsigned i) const -{ - if (!m_impl || i >= m_impl->length()) - return 0; - return m_impl->characters()[i]; -} - UChar32 String::characterStartingAt(unsigned i) const { if (!m_impl || i >= m_impl->length()) @@ -216,13 +188,6 @@ UChar32 String::characterStartingAt(unsigned i) const return m_impl->characterStartingAt(i); } -unsigned String::length() const -{ - if (!m_impl) - return 0; - return m_impl->length(); -} - void String::truncate(unsigned position) { if (position >= length()) @@ -311,13 +276,6 @@ bool String::percentage(int& result) const return true; } -const UChar* String::characters() const -{ - if (!m_impl) - return 0; - return m_impl->characters(); -} - const UChar* String::charactersWithNullTermination() { if (!m_impl) @@ -591,11 +549,6 @@ String String::crossThreadString() const return m_impl->crossThreadString(); } -bool String::isEmpty() const -{ - return !m_impl || !m_impl->length(); -} - void String::split(const String& separator, bool allowEmptyEntries, Vector& result) const { result.clear(); -- cgit v1.1