Bug 1268517 - Remove unused function. r?botond
MozReview-Commit-ID: 7E9gZhizUZt
--- a/gfx/layers/apz/util/APZThreadUtils.cpp
+++ b/gfx/layers/apz/util/APZThreadUtils.cpp
@@ -75,33 +75,16 @@ APZThreadUtils::RunOnControllerThread(al
if (sControllerThread == MessageLoop::current()) {
task->Run();
} else {
sControllerThread->PostTask(task.forget());
}
#endif
}
-/*static*/ void
-APZThreadUtils::RunDelayedTaskOnCurrentThread(already_AddRefed<Runnable> aTask,
- const TimeDuration& aDelay)
-{
- if (MessageLoop* messageLoop = MessageLoop::current()) {
- messageLoop->PostDelayedTask(Move(aTask), aDelay.ToMilliseconds());
- } else {
-#ifdef MOZ_ANDROID_APZ
- // Fennec does not have a MessageLoop::current() on the controller thread.
- AndroidBridge::Bridge()->PostTaskToUiThread(Move(aTask), aDelay.ToMilliseconds());
-#else
- // Other platforms should.
- MOZ_RELEASE_ASSERT(false, "This non-Fennec platform should have a MessageLoop::current()");
-#endif
- }
-}
-
/*static*/ bool
APZThreadUtils::IsControllerThread()
{
#ifdef MOZ_ANDROID_APZ
return AndroidBridge::IsJavaUiThread();
#else
return sControllerThread == MessageLoop::current();
#endif
--- a/gfx/layers/apz/util/APZThreadUtils.h
+++ b/gfx/layers/apz/util/APZThreadUtils.h
@@ -49,22 +49,16 @@ public:
/**
* Run the given task on the APZ "controller thread" for this platform. If
* this function is called from the controller thread itself then the task is
* run immediately without getting queued.
*/
static void RunOnControllerThread(already_AddRefed<Runnable> aTask);
/**
- * Runs the given task on the current thread after a delay of |aDelay|.
- */
- static void RunDelayedTaskOnCurrentThread(already_AddRefed<Runnable> aTask,
- const TimeDuration& aDelay);
-
- /**
* Returns true if currently on APZ "controller thread".
*/
static bool IsControllerThread();
};
// A base class for GenericTimerCallback<Function>.
// This is necessary because NS_IMPL_ISUPPORTS doesn't work for a class
// template.