Skip to content
  • andersca@apple.com's avatar
    Clean up Vector.h · eda74776
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=99622
    
    Reviewed by Benjamin Poulain.
    
    Source/JavaScriptCore:
    
    Fix fallout from removing std::max and std::min using declarations.
    
    * runtime/StringPrototype.cpp:
    (JSC::jsSpliceSubstrings):
    (JSC::jsSpliceSubstringsWithSeparators):
    (JSC::stringProtoFuncIndexOf):
    * yarr/YarrPattern.cpp:
    (JSC::Yarr::YarrPatternConstructor::setupDisjunctionOffsets):
    
    Source/WebCore:
    
    Fix fallout from removing std::max and std::min using declarations.
    
    * loader/cache/CachedResource.cpp:
    (WebCore::CachedResource::currentAge):
    
    Source/WTF:
    
    Remove unused member functions from Vector and get rid of the std::max and std::min using declarations
    (as per the WebKit coding style guidelines).
    
    * WTF.xcodeproj/project.pbxproj:
    Turns out StreamBuffer.h was never added to the Xcode project; add it. Also go ahead and sort the project file.
    
    * wtf/Deque.h:
    (WTF::::expandCapacity):
    * wtf/StreamBuffer.h:
    (WTF::StreamBuffer::append):
    Add std:: prefixes to max and min.
    
    * wtf/Vector.h:
    Remove VectorBase::bufferSlot(), VectorReverseProxy and add std:: prefixes where needed.
    
    Tools:
    
    Remove ReversedProxy test.
    
    * TestWebKitAPI/Tests/WTF/Vector.cpp:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    eda74776