From c65d51f812f0355f5fbdb3a64b64c16559196bee Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 6 Jun 2013 13:55:14 -0700 Subject: [PATCH] Address review comments --- src/components/main/layout/context.rs | 2 -- src/components/main/layout/layout_task.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/components/main/layout/context.rs b/src/components/main/layout/context.rs index 8646b9faabc..13b6f4e8a83 100644 --- a/src/components/main/layout/context.rs +++ b/src/components/main/layout/context.rs @@ -8,12 +8,10 @@ use geom::rect::Rect; use gfx::font_context::FontContext; use gfx::geometry::Au; use servo_net::local_image_cache::LocalImageCache; -use std::net::url::Url; /// Data needed by the layout task. pub struct LayoutContext { font_ctx: @mut FontContext, image_cache: @mut LocalImageCache, - doc_url: Url, screen_size: Rect } diff --git a/src/components/main/layout/layout_task.rs b/src/components/main/layout/layout_task.rs index 82a3a214b9c..7856c0fc3dc 100644 --- a/src/components/main/layout/layout_task.rs +++ b/src/components/main/layout/layout_task.rs @@ -116,12 +116,10 @@ impl Layout { let image_cache = self.local_image_cache; let font_ctx = self.font_ctx; let screen_size = self.screen_size.unwrap(); - let doc_url = self.doc_url.clone(); LayoutContext { image_cache: image_cache, font_ctx: font_ctx, - doc_url: doc_url.unwrap(), screen_size: Rect(Point2D(Au(0), Au(0)), screen_size), } }