Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: third_party/WebKit/Source/platform/DateComponents.cpp

Issue 2394683005: Remove ASSERT_UNUSED (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 bool ok; 443 bool ok;
444 if (digitsLength == 1) { 444 if (digitsLength == 1) {
445 ok = toInt(src, index, 1, millisecond); 445 ok = toInt(src, index, 1, millisecond);
446 millisecond *= 100; 446 millisecond *= 100;
447 } else if (digitsLength == 2) { 447 } else if (digitsLength == 2) {
448 ok = toInt(src, index, 2, millisecond); 448 ok = toInt(src, index, 2, millisecond);
449 millisecond *= 10; 449 millisecond *= 10;
450 } else { // digitsLength >= 3 450 } else { // digitsLength >= 3
451 ok = toInt(src, index, 3, millisecond); 451 ok = toInt(src, index, 3, millisecond);
452 } 452 }
453 ASSERT_UNUSED(ok, ok); 453 DCHECK(ok);
454 index += digitsLength; 454 index += digitsLength;
455 } 455 }
456 } 456 }
457 } 457 }
458 } 458 }
459 m_hour = hour; 459 m_hour = hour;
460 m_minute = minute; 460 m_minute = minute;
461 m_second = second; 461 m_second = second;
462 m_millisecond = millisecond; 462 m_millisecond = millisecond;
463 end = index; 463 end = index;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 case Week: 712 case Week:
713 return String::format("%04d-W%02d", m_year, m_week); 713 return String::format("%04d-W%02d", m_year, m_week);
714 case Invalid: 714 case Invalid:
715 break; 715 break;
716 } 716 }
717 ASSERT_NOT_REACHED(); 717 ASSERT_NOT_REACHED();
718 return String("(Invalid DateComponents)"); 718 return String("(Invalid DateComponents)");
719 } 719 }
720 720
721 } // namespace blink 721 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698