зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1645528 - Code cleanups r=mattwoodrow
Remove dead code that was left in D93173 so file histories would get preserved. Depends on D93173 Differential Revision: https://phabricator.services.mozilla.com/D96934
This commit is contained in:
Родитель
5ccb38b25c
Коммит
fad80ebaf0
|
@ -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));
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче