mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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,
|
||||
vp: *mut JSVal) -> bool {
|
||||
unsafe {
|
||||
let mut cache = value.get_wrappercache();
|
||||
let mut obj = cache.get_wrapper();
|
||||
let cache = value.get_wrappercache();
|
||||
let obj = cache.get_wrapper();
|
||||
if obj.is_not_null() /*&& js::GetObjectCompartment(obj) == js::GetObjectCompartment(scope)*/ {
|
||||
*vp = RUST_OBJECT_TO_JSVAL(obj);
|
||||
return true;
|
||||
|
|
|
@ -65,14 +65,12 @@ impl BlockLayout for FlowContext {
|
|||
fn with_block_box(&self, callback: &fn(box: RenderBox) -> ()) -> () {
|
||||
match *self {
|
||||
BlockFlow(*) => {
|
||||
let box = self.block().box;
|
||||
for box.each |&b| {
|
||||
for self.block().box.each |&b| {
|
||||
callback(b);
|
||||
}
|
||||
},
|
||||
RootFlow(*) => {
|
||||
let mut box = self.root().box;
|
||||
for box.each |&b| {
|
||||
for self.root().box.each |&b| {
|
||||
callback(b);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue