Remove unused argument from AlreadyInRealm::assert.

This commit is contained in:
Josh Matthews 2023-02-16 23:29:49 -05:00
parent fca5833e21
commit 5e5669b945
8 changed files with 10 additions and 12 deletions

View file

@ -11,7 +11,7 @@ pub struct AlreadyInRealm(());
impl AlreadyInRealm {
#![allow(unsafe_code)]
pub fn assert(_global: &GlobalScope) -> AlreadyInRealm {
pub fn assert() -> AlreadyInRealm {
unsafe {
assert!(!GetCurrentRealmOrNull(*GlobalScope::get_cx()).is_null());
}