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:
Robert Mader 2020-12-02 09:02:45 +00:00
Родитель 529f433f65
Коммит 5d2847fe7f
2 изменённых файлов: 0 добавлений и 34 удалений

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

@ -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();