Changeset 108929 in webkit


Ignore:
Timestamp:
Feb 25, 2012 11:05:20 PM (12 years ago)
Author:
benjamin@webkit.org
Message:

Get rid of KURL::deprecatedString()
https://bugs.webkit.org/show_bug.cgi?id=79594

Reviewed by Andreas Kling.

The method KURL::deprecatedString() is unused, remove it from WebCore.

The last reference to the method was removed in r96779.

  • platform/KURL.cpp:

(WebCore):

  • platform/KURL.h:

(KURL):

  • platform/KURLGoogle.cpp:

(WebCore):

  • platform/KURLWTFURL.cpp:

(WebCore):

Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r108928 r108929  
     12012-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
    1212012-02-25  Benjamin Poulain  <benjamin@webkit.org>
    222
  • trunk/Source/WebCore/platform/KURL.cpp

    r108928 r108929  
    848848}
    849849
    850 String KURL::deprecatedString() const
    851 {
    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 
    898850String decodeURLEscapeSequences(const String& string)
    899851{
  • trunk/Source/WebCore/platform/KURL.h

    r108928 r108929  
    148148    String baseAsString() const;
    149149
    150     // This function is only used by location.href. It's likely we shouldn't
    151     // use it for that purpose, but more study is necessary before we remove it.
    152     String deprecatedString() const;
    153150    String fileSystemPath() const;
    154151
  • trunk/Source/WebCore/platform/KURLGoogle.cpp

    r108928 r108929  
    772772}
    773773
    774 // On Mac, this just seems to return the same URL, but with "/foo/bar" for
    775 // file: URLs instead of file:///foo/bar. We don't bother with any of this,
    776 // at least for now.
    777 String KURL::deprecatedString() const
    778 {
    779     if (!m_url.m_isValid)
    780         return String();
    781     return m_url.string();
    782 }
    783 
    784774String decodeURLEscapeSequences(const String& str)
    785775{
  • trunk/Source/WebCore/platform/KURLWTFURL.cpp

    r108928 r108929  
    154154}
    155155
    156 String KURL::deprecatedString() const
    157 {
    158     // FIXME: Add WTFURL Implementation.
    159     return String();
    160 }
    161 
    162156String KURL::fileSystemPath() const
    163157{
Note: See TracChangeset for help on using the changeset viewer.