Remove unused mut.

This commit is contained in:
Jack Moffitt 2013-05-10 14:52:49 -06:00
parent 11467e21bb
commit ea1f9e02b0
2 changed files with 4 additions and 6 deletions

View file

@ -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;

View file

@ -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);
} }
}, },