summaryrefslogtreecommitdiffstats
path: root/dom/geolocation/nsGeolocation.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-09-29 23:20:36 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-09-29 23:20:36 +0200
commit81b341a9b37acae2b60e0334a9b0846bc5be8445 (patch)
treeb998e480ac1971ea93101510438ba1e87d9db82a /dom/geolocation/nsGeolocation.cpp
parentddf29811b2d95bdf8385b9eb85519332b69344ca (diff)
downloadUXP-81b341a9b37acae2b60e0334a9b0846bc5be8445.tar
UXP-81b341a9b37acae2b60e0334a9b0846bc5be8445.tar.gz
UXP-81b341a9b37acae2b60e0334a9b0846bc5be8445.tar.lz
UXP-81b341a9b37acae2b60e0334a9b0846bc5be8445.tar.xz
UXP-81b341a9b37acae2b60e0334a9b0846bc5be8445.zip
Clean up a number of unused variables.
Tag #21.
Diffstat (limited to 'dom/geolocation/nsGeolocation.cpp')
-rw-r--r--dom/geolocation/nsGeolocation.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/dom/geolocation/nsGeolocation.cpp b/dom/geolocation/nsGeolocation.cpp
index 201d4d89a..244018ee8 100644
--- a/dom/geolocation/nsGeolocation.cpp
+++ b/dom/geolocation/nsGeolocation.cpp
@@ -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;
}