Changeset 94954 in webkit


Ignore:
Timestamp:
Sep 12, 2011 6:33:56 AM (13 years ago)
Author:
abecsi@webkit.org
Message:

[Qt] Build fails after r94920 with strict compiler
https://bugs.webkit.org/show_bug.cgi?id=67928

Reviewed by Csaba Osztrogonác.

  • wtf/RedBlackTree.h:

(WTF::RedBlackTree::insert): Remove dead variables updateStart and newSubTreeRoot.

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r94952 r94954  
     12011-09-12  Andras Becsi  <andras.becsi@nokia.com>
     2
     3        [Qt] Build fails after r94920 with strict compiler
     4        https://bugs.webkit.org/show_bug.cgi?id=67928
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        * wtf/RedBlackTree.h:
     9        (WTF::RedBlackTree::insert): Remove dead variables updateStart and newSubTreeRoot.
     10
    1112011-09-12  Patrick Gansterer  <paroga@webkit.org>
    212
  • trunk/Source/JavaScriptCore/wtf/RedBlackTree.h

    r94920 r94954  
    172172        x->setColor(Red);
    173173
    174         // The node from which to start propagating updates upwards.
    175         Node* updateStart = x->parent();
    176 
    177174        while (x != m_root && x->parent()->color() == Red) {
    178175            if (x->parent() == x->parent()->parent()->left()) {
     
    184181                    x->parent()->parent()->setColor(Red);
    185182                    x = x->parent()->parent();
    186                     updateStart = x->parent();
    187183                } else {
    188184                    if (x == x->parent()->right()) {
     
    194190                    x->parent()->setColor(Black);
    195191                    x->parent()->parent()->setColor(Red);
    196                     Node* newSubTreeRoot = rightRotate(x->parent()->parent());
    197                     updateStart = newSubTreeRoot->parent();
     192                    rightRotate(x->parent()->parent());
    198193                }
    199194            } else {
     
    206201                    x->parent()->parent()->setColor(Red);
    207202                    x = x->parent()->parent();
    208                     updateStart = x->parent();
    209203                } else {
    210204                    if (x == x->parent()->left()) {
     
    216210                    x->parent()->setColor(Black);
    217211                    x->parent()->parent()->setColor(Red);
    218                     Node* newSubTreeRoot = leftRotate(x->parent()->parent());
    219                     updateStart = newSubTreeRoot->parent();
     212                    leftRotate(x->parent()->parent());
    220213                }
    221214            }
Note: See TracChangeset for help on using the changeset viewer.