Changeset 38190 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Nov 6, 2008, 11:30:34 AM (17 years ago)
Author:
Simon Hausmann
Message:

2008-11-06 Laszlo Gombos <Laszlo Gombos>

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=22107

Bug uncovered during RVCT port in functions not used. get_lt() and
get_gt() takes only one argument - remove second argument where
applicable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/AVLTree.h

    r36263 r38190  
    823823
    824824        // Get the handle of the opposite child, which may not be null.
    825         child = cmp > 0 ? get_lt(h, false) : get_gt(h, false);
     825        child = cmp > 0 ? get_lt(h) : get_gt(h);
    826826    }
    827827
     
    842842    if (h != rm) {
    843843        // Poke in the replacement for the node to be removed.
    844         set_lt(h, get_lt(rm, false));
    845         set_gt(h, get_gt(rm, false));
     844        set_lt(h, get_lt(rm));
     845        set_gt(h, get_gt(rm));
    846846        set_bf(h, get_bf(rm));
    847847        if (parent_rm == null())
     
    935935
    936936    /* Copy tree housekeeping fields from node in tree to new node. */
    937     set_lt(new_node, get_lt(h, false));
    938     set_gt(new_node, get_gt(h, false));
     937    set_lt(new_node, get_lt(h));
     938    set_gt(new_node, get_gt(h));
    939939    set_bf(new_node, get_bf(h));
    940940
     
    953953}
    954954
    955 
    956955}
    957956
Note: See TracChangeset for help on using the changeset viewer.