From e913f83eee21fc07afdb94c4df6db5ac208b61c6 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 27 Feb 2020 04:03:08 -0800 Subject: [PATCH] Remove obsolete TODOs --- canvas/src/lib.rs | 1 - content/src/outline.rs | 1 - renderer/src/allocator.rs | 1 - renderer/src/paint.rs | 1 - simd/src/x86/mod.rs | 2 +- ui/src/lib.rs | 2 +- 6 files changed, 2 insertions(+), 6 deletions(-) diff --git a/canvas/src/lib.rs b/canvas/src/lib.rs index b87060bf..b3de4f42 100644 --- a/canvas/src/lib.rs +++ b/canvas/src/lib.rs @@ -510,7 +510,6 @@ pub struct Path2D { current_contour: Contour, } -// TODO(pcwalton): `ellipse` impl Path2D { #[inline] pub fn new() -> Path2D { diff --git a/content/src/outline.rs b/content/src/outline.rs index 0f22558e..d5e740f9 100644 --- a/content/src/outline.rs +++ b/content/src/outline.rs @@ -308,7 +308,6 @@ impl Contour { self.closed = true; } - // TODO(pcwalton): SIMD. #[inline] pub(crate) fn push_point(&mut self, point: Vector2F, diff --git a/renderer/src/allocator.rs b/renderer/src/allocator.rs index 78bae777..1090ae46 100644 --- a/renderer/src/allocator.rs +++ b/renderer/src/allocator.rs @@ -22,7 +22,6 @@ pub struct TextureAllocator { pages: Vec, } -// TODO(pcwalton): Add layers, perhaps? #[derive(Debug)] pub enum TexturePageAllocator { // An atlas allocated with our quadtree allocator. diff --git a/renderer/src/paint.rs b/renderer/src/paint.rs index a66b70b3..b7aafc91 100644 --- a/renderer/src/paint.rs +++ b/renderer/src/paint.rs @@ -160,7 +160,6 @@ pub struct PaintInfo { pub metadata: Vec, } -// TODO(pcwalton): Add clamp/repeat options. #[derive(Debug)] pub struct PaintMetadata { /// The location of the texture. diff --git a/simd/src/x86/mod.rs b/simd/src/x86/mod.rs index ea8f31f0..23a52686 100644 --- a/simd/src/x86/mod.rs +++ b/simd/src/x86/mod.rs @@ -532,7 +532,7 @@ impl I32x2 { // Comparisons - // TODO(pcwalton): Make a `U32x2` type and use that! + // TODO(pcwalton): Use the `U32x2` type! #[inline] pub fn packed_eq(self, other: I32x2) -> U32x4 { self.to_i32x4().packed_eq(other.to_i32x4()) diff --git a/ui/src/lib.rs b/ui/src/lib.rs index cdc2ee43..e8a7907b 100644 --- a/ui/src/lib.rs +++ b/ui/src/lib.rs @@ -325,7 +325,7 @@ impl UIPresenter where D: Device { self.draw_solid_rects_with_vertex_data(device, &vertex_data, index_data, color, false); } - // TODO(pcwalton): `LineSegmentI32`. + // TODO(pcwalton): `LineSegment2I`. fn draw_line(&self, device: &D, from: Vector2I, to: Vector2I, color: ColorU) { let vertex_data = vec![DebugSolidVertex::new(from), DebugSolidVertex::new(to)]; self.draw_solid_rects_with_vertex_data(device, &vertex_data, &[0, 1], color, false);