Changeset 199142 in webkit


Ignore:
Timestamp:
Apr 6, 2016 7:07:26 PM (8 years ago)
Author:
Gyuyoung Kim
Message:

Remove duplicated parsePortFromStringPosition()
https://bugs.webkit.org/show_bug.cgi?id=156289

Reviewed by Simon Fraser.

Same parsePortFromStringPosition() functions have been defined in both URLUtils.h and HTMLAnchorElement.cpp.
Remove duplicated one in HTMLAnchorElement.cpp.

No new tests, no behavior change.

  • html/HTMLAnchorElement.cpp:

(WebCore::parsePortFromStringPosition): Deleted.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r199130 r199142  
     12016-04-06  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
     2
     3        Remove duplicated parsePortFromStringPosition()
     4        https://bugs.webkit.org/show_bug.cgi?id=156289
     5
     6        Reviewed by Simon Fraser.
     7
     8        Same parsePortFromStringPosition() functions have been defined in both URLUtils.h and HTMLAnchorElement.cpp.
     9        Remove duplicated one in HTMLAnchorElement.cpp.
     10
     11        No new tests, no behavior change.
     12
     13        * html/HTMLAnchorElement.cpp:
     14        (WebCore::parsePortFromStringPosition): Deleted.
     15
    1162016-04-06  Simon Fraser  <simon.fraser@apple.com>
    217
  • trunk/Source/WebCore/html/HTMLAnchorElement.cpp

    r198893 r199142  
    4747#include "SecurityPolicy.h"
    4848#include "Settings.h"
     49#include "URLUtils.h"
    4950#include <wtf/text/StringBuilder.h>
    5051
     
    7576{
    7677    clearRootEditableElementForSelectionOnMouseDown();
    77 }
    78 
    79 // This function does not allow leading spaces before the port number.
    80 static unsigned parsePortFromStringPosition(const String& value, unsigned portStart, unsigned& portEnd)
    81 {
    82     portEnd = portStart;
    83     while (isASCIIDigit(value[portEnd]))
    84         ++portEnd;
    85     return value.substring(portStart, portEnd - portStart).toUInt();
    8678}
    8779
Note: See TracChangeset for help on using the changeset viewer.