Changeset 142718 in webkit


Ignore:
Timestamp:
Feb 12, 2013 9:17:18 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Remove unnecessary and confusing includes from StreamBuffer.h.
https://bugs.webkit.org/show_bug.cgi?id=109652

Patch by Takeshi Yoshino <tyoshino@google.com> on 2013-02-12
Reviewed by Benjamin Poulain.

StreamBuffer.h is using OwnPtr for storing Vectors into a Deque.
FixedArray.h and PassOwnPtr.h are included but not used.

VectorTraits defines how to move OwnPtr in Vector. It's done by memcpy.
So, there's no need for PassOwnPtr (Deque<PassOwnPtr<Vector<char> > >
is even slower).

  • wtf/StreamBuffer.h:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r142689 r142718  
     12013-02-12  Takeshi Yoshino  <tyoshino@google.com>
     2
     3        Remove unnecessary and confusing includes from StreamBuffer.h.
     4        https://bugs.webkit.org/show_bug.cgi?id=109652
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        StreamBuffer.h is using OwnPtr for storing Vectors into a Deque.
     9        FixedArray.h and PassOwnPtr.h are included but not used.
     10
     11        VectorTraits defines how to move OwnPtr in Vector. It's done by memcpy.
     12        So, there's no need for PassOwnPtr (Deque<PassOwnPtr<Vector<char> > >
     13        is even slower).
     14
     15        * wtf/StreamBuffer.h:
     16
    1172013-02-12  Eric Seidel  <eric@webkit.org>
    218
  • trunk/Source/WTF/wtf/StreamBuffer.h

    r131659 r142718  
    3333
    3434#include <wtf/Deque.h>
    35 #include <wtf/FixedArray.h>
    3635#include <wtf/OwnPtr.h>
    37 #include <wtf/PassOwnPtr.h>
    3836
    3937namespace WTF {
Note: See TracChangeset for help on using the changeset viewer.