Bug 1186684 - Remove unused ErrorResult in Animation::SetPlaybackRate/SilentlySetPlaybackRate. r=bbirtles

This commit is contained in:
Hiroyuki Ikezoe 2015-07-23 02:55:00 -04:00
Родитель 4729fff432
Коммит 3c7a785930
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -158,9 +158,7 @@ Animation::SetPlaybackRate(double aPlaybackRate)
Nullable<TimeDuration> previousTime = GetCurrentTime(); Nullable<TimeDuration> previousTime = GetCurrentTime();
mPlaybackRate = aPlaybackRate; mPlaybackRate = aPlaybackRate;
if (!previousTime.IsNull()) { if (!previousTime.IsNull()) {
ErrorResult rv;
SetCurrentTime(previousTime.Value()); SetCurrentTime(previousTime.Value());
MOZ_ASSERT(!rv.Failed(), "Should not assert for non-null time");
} }
} }
@ -449,9 +447,7 @@ Animation::SilentlySetPlaybackRate(double aPlaybackRate)
Nullable<TimeDuration> previousTime = GetCurrentTime(); Nullable<TimeDuration> previousTime = GetCurrentTime();
mPlaybackRate = aPlaybackRate; mPlaybackRate = aPlaybackRate;
if (!previousTime.IsNull()) { if (!previousTime.IsNull()) {
ErrorResult rv;
SilentlySetCurrentTime(previousTime.Value()); SilentlySetCurrentTime(previousTime.Value());
MOZ_ASSERT(!rv.Failed(), "Should not assert for non-null time");
} }
} }