Clean up a number of unused variables.

Tag #21.
This commit is contained in:
wolfbeast 2018-09-29 23:20:36 +02:00 committed by Roy Tam
commit 57251fc4e7
9 changed files with 0 additions and 77 deletions

View file

@ -395,18 +395,6 @@ nsGeolocationRequest::Allow(JS::HandleValue aChoices)
{
MOZ_ASSERT(aChoices.isUndefined());
if (mRequester) {
// Record whether a location callback is fulfilled while the owner window
// is not visible.
bool isVisible = false;
nsCOMPtr<nsPIDOMWindowInner> window = mLocator->GetParentObject();
if (window) {
nsCOMPtr<nsIDocument> doc = window->GetDoc();
isVisible = doc && !doc->Hidden();
}
}
if (mLocator->ClearPendingRequest(this)) {
return NS_OK;
}