Changeset 94954 in webkit
- Timestamp:
- Sep 12, 2011 6:33:56 AM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r94952 r94954 1 2011-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 1 11 2011-09-12 Patrick Gansterer <paroga@webkit.org> 2 12 -
trunk/Source/JavaScriptCore/wtf/RedBlackTree.h
r94920 r94954 172 172 x->setColor(Red); 173 173 174 // The node from which to start propagating updates upwards.175 Node* updateStart = x->parent();176 177 174 while (x != m_root && x->parent()->color() == Red) { 178 175 if (x->parent() == x->parent()->parent()->left()) { … … 184 181 x->parent()->parent()->setColor(Red); 185 182 x = x->parent()->parent(); 186 updateStart = x->parent();187 183 } else { 188 184 if (x == x->parent()->right()) { … … 194 190 x->parent()->setColor(Black); 195 191 x->parent()->parent()->setColor(Red); 196 Node* newSubTreeRoot = rightRotate(x->parent()->parent()); 197 updateStart = newSubTreeRoot->parent(); 192 rightRotate(x->parent()->parent()); 198 193 } 199 194 } else { … … 206 201 x->parent()->parent()->setColor(Red); 207 202 x = x->parent()->parent(); 208 updateStart = x->parent();209 203 } else { 210 204 if (x == x->parent()->left()) { … … 216 210 x->parent()->setColor(Black); 217 211 x->parent()->parent()->setColor(Red); 218 Node* newSubTreeRoot = leftRotate(x->parent()->parent()); 219 updateStart = newSubTreeRoot->parent(); 212 leftRotate(x->parent()->parent()); 220 213 } 221 214 }
Note: See TracChangeset
for help on using the changeset viewer.