Bug 1881694 - Remove unused method PermissionManager::LegacyTestPermissionFromURI. r=pbz

Differential Revision: https://phabricator.services.mozilla.com/D213918
This commit is contained in:
Timur Valeev 2024-06-18 11:18:42 +00:00
Родитель 6d68a7e6f2
Коммит 11b82e90e7
2 изменённых файлов: 1 добавлений и 13 удалений

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

@ -2346,14 +2346,6 @@ PermissionManager::TestExactPermanentPermission(nsIPrincipal* aPrincipal,
false);
}
nsresult PermissionManager::LegacyTestPermissionFromURI(
nsIURI* aURI, const OriginAttributes* aOriginAttributes,
const nsACString& aType, uint32_t* aPermission) {
return CommonTestPermission(aURI, aOriginAttributes, -1, aType, aPermission,
nsIPermissionManager::UNKNOWN_ACTION, false,
false, true);
}
NS_IMETHODIMP
PermissionManager::TestPermissionFromPrincipal(nsIPrincipal* aPrincipal,
const nsACString& aType,

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

@ -114,7 +114,7 @@ class PermissionManager final : public nsIPermissionManager,
PermissionKey() = delete;
// Dtor shouldn't be used outside of the class.
~PermissionKey(){};
~PermissionKey() {};
};
class PermissionHashKey : public nsRefPtrHashKey<PermissionKey> {
@ -193,10 +193,6 @@ class PermissionManager final : public nsIPermissionManager,
const nsACString& aType,
uint32_t* aPermission);
nsresult LegacyTestPermissionFromURI(
nsIURI* aURI, const OriginAttributes* aOriginAttributes,
const nsACString& aType, uint32_t* aPermission);
nsresult RemovePermissionsWithAttributes(OriginAttributesPattern& aAttrs);
/**