mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Remove unused mut.
This commit is contained in:
parent
11467e21bb
commit
ea1f9e02b0
2 changed files with 4 additions and 6 deletions
|
@ -608,8 +608,8 @@ pub fn WrapNewBindingObject(cx: *JSContext, scope: *JSObject,
|
||||||
mut value: @mut CacheableWrapper,
|
mut value: @mut CacheableWrapper,
|
||||||
vp: *mut JSVal) -> bool {
|
vp: *mut JSVal) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut cache = value.get_wrappercache();
|
let cache = value.get_wrappercache();
|
||||||
let mut obj = cache.get_wrapper();
|
let obj = cache.get_wrapper();
|
||||||
if obj.is_not_null() /*&& js::GetObjectCompartment(obj) == js::GetObjectCompartment(scope)*/ {
|
if obj.is_not_null() /*&& js::GetObjectCompartment(obj) == js::GetObjectCompartment(scope)*/ {
|
||||||
*vp = RUST_OBJECT_TO_JSVAL(obj);
|
*vp = RUST_OBJECT_TO_JSVAL(obj);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -65,14 +65,12 @@ impl BlockLayout for FlowContext {
|
||||||
fn with_block_box(&self, callback: &fn(box: RenderBox) -> ()) -> () {
|
fn with_block_box(&self, callback: &fn(box: RenderBox) -> ()) -> () {
|
||||||
match *self {
|
match *self {
|
||||||
BlockFlow(*) => {
|
BlockFlow(*) => {
|
||||||
let box = self.block().box;
|
for self.block().box.each |&b| {
|
||||||
for box.each |&b| {
|
|
||||||
callback(b);
|
callback(b);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
RootFlow(*) => {
|
RootFlow(*) => {
|
||||||
let mut box = self.root().box;
|
for self.root().box.each |&b| {
|
||||||
for box.each |&b| {
|
|
||||||
callback(b);
|
callback(b);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue