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

View file

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