mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Remove unused argument from AlreadyInRealm::assert.
This commit is contained in:
parent
fca5833e21
commit
5e5669b945
8 changed files with 10 additions and 12 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue