diff --git a/dom/ipc/VsyncChild.cpp b/dom/ipc/VsyncChild.cpp index ef0b3524b6cc..8570c4866b77 100644 --- a/dom/ipc/VsyncChild.cpp +++ b/dom/ipc/VsyncChild.cpp @@ -20,26 +20,6 @@ VsyncChild::VsyncChild() VsyncChild::~VsyncChild() { MOZ_ASSERT(NS_IsMainThread()); } -/* do not delete yet so the file history is preserved -bool VsyncChild::SendObserve() { - MOZ_ASSERT(NS_IsMainThread()); - if (!mObservingVsync && !mIsShutdown) { - mObservingVsync = true; - PVsyncChild::SendObserve(); - } - return true; -} - -bool VsyncChild::SendUnobserve() { - MOZ_ASSERT(NS_IsMainThread()); - if (mObservingVsync && !mIsShutdown) { - mObservingVsync = false; - PVsyncChild::SendUnobserve(); - } - return true; -} -*/ - void VsyncChild::AddChildRefreshTimer(VsyncObserver* aVsyncObserver) { MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(!mObservers.Contains(aVsyncObserver)); diff --git a/dom/ipc/VsyncChild.h b/dom/ipc/VsyncChild.h index ad057b58ce5b..62303024377f 100644 --- a/dom/ipc/VsyncChild.h +++ b/dom/ipc/VsyncChild.h @@ -35,20 +35,6 @@ class VsyncChild final : public PVsyncChild { TimeDuration GetVsyncRate(); - /* - // Bind a VsyncObserver into VsyncChild after ipc channel connected. - void SetVsyncObserver(VsyncObserver* aVsyncObserver); - // GetVsyncRate is a getter for mVsyncRate which sends a requests to - // VsyncParent to retreive the hardware vsync rate if mVsyncRate - // hasn't already been set. - TimeDuration GetVsyncRate(); - // VsyncRate is a getter for mVsyncRate which always returns - // mVsyncRate directly, potentially returning - // TimeDuration::Forever() if mVsyncRate hasn't been set by calling - // GetVsyncRate. - TimeDuration VsyncRate(); - */ - private: virtual ~VsyncChild();