Changeset 108929 in webkit
- Timestamp:
- Feb 25, 2012 11:05:20 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r108928 r108929 1 2012-02-25 Benjamin Poulain <benjamin@webkit.org> 2 3 Get rid of KURL::deprecatedString() 4 https://bugs.webkit.org/show_bug.cgi?id=79594 5 6 Reviewed by Andreas Kling. 7 8 The method KURL::deprecatedString() is unused, remove it from WebCore. 9 10 The last reference to the method was removed in r96779. 11 12 * platform/KURL.cpp: 13 (WebCore): 14 * platform/KURL.h: 15 (KURL): 16 * platform/KURLGoogle.cpp: 17 (WebCore): 18 * platform/KURLWTFURL.cpp: 19 (WebCore): 20 1 21 2012-02-25 Benjamin Poulain <benjamin@webkit.org> 2 22 -
trunk/Source/WebCore/platform/KURL.cpp
r108928 r108929 848 848 } 849 849 850 String KURL::deprecatedString() const851 {852 if (!m_isValid)853 return m_string;854 855 StringBuilder result;856 857 result.append(protocol());858 result.append(':');859 860 StringBuilder authority;861 862 if (m_hostEnd != m_passwordEnd) {863 if (m_userEnd != m_userStart) {864 authority.append(user());865 authority.append('@');866 }867 authority.append(host());868 if (hasPort()) {869 authority.append(':');870 authority.append(String::number(port()));871 }872 }873 874 if (!authority.isEmpty()) {875 result.append('/');876 result.append('/');877 result.append(authority.characters(), authority.length());878 } else if (protocolIs("file")) {879 result.append('/');880 result.append('/');881 }882 883 result.append(path());884 885 if (m_pathEnd != m_queryEnd) {886 result.append('?');887 result.append(query());888 }889 890 if (m_fragmentEnd != m_queryEnd) {891 result.append('#');892 result.append(fragmentIdentifier());893 }894 895 return result.toString();896 }897 898 850 String decodeURLEscapeSequences(const String& string) 899 851 { -
trunk/Source/WebCore/platform/KURL.h
r108928 r108929 148 148 String baseAsString() const; 149 149 150 // This function is only used by location.href. It's likely we shouldn't151 // use it for that purpose, but more study is necessary before we remove it.152 String deprecatedString() const;153 150 String fileSystemPath() const; 154 151 -
trunk/Source/WebCore/platform/KURLGoogle.cpp
r108928 r108929 772 772 } 773 773 774 // On Mac, this just seems to return the same URL, but with "/foo/bar" for775 // file: URLs instead of file:///foo/bar. We don't bother with any of this,776 // at least for now.777 String KURL::deprecatedString() const778 {779 if (!m_url.m_isValid)780 return String();781 return m_url.string();782 }783 784 774 String decodeURLEscapeSequences(const String& str) 785 775 { -
trunk/Source/WebCore/platform/KURLWTFURL.cpp
r108928 r108929 154 154 } 155 155 156 String KURL::deprecatedString() const157 {158 // FIXME: Add WTFURL Implementation.159 return String();160 }161 162 156 String KURL::fileSystemPath() const 163 157 {
Note: See TracChangeset
for help on using the changeset viewer.