Remove obsolete TODOs

This commit is contained in:
Patrick Walton 2020-02-27 04:03:08 -08:00
parent b998449885
commit e913f83eee
6 changed files with 2 additions and 6 deletions

View File

@ -510,7 +510,6 @@ pub struct Path2D {
current_contour: Contour, current_contour: Contour,
} }
// TODO(pcwalton): `ellipse`
impl Path2D { impl Path2D {
#[inline] #[inline]
pub fn new() -> Path2D { pub fn new() -> Path2D {

View File

@ -308,7 +308,6 @@ impl Contour {
self.closed = true; self.closed = true;
} }
// TODO(pcwalton): SIMD.
#[inline] #[inline]
pub(crate) fn push_point(&mut self, pub(crate) fn push_point(&mut self,
point: Vector2F, point: Vector2F,

View File

@ -22,7 +22,6 @@ pub struct TextureAllocator {
pages: Vec<TexturePageAllocator>, pages: Vec<TexturePageAllocator>,
} }
// TODO(pcwalton): Add layers, perhaps?
#[derive(Debug)] #[derive(Debug)]
pub enum TexturePageAllocator { pub enum TexturePageAllocator {
// An atlas allocated with our quadtree allocator. // An atlas allocated with our quadtree allocator.

View File

@ -160,7 +160,6 @@ pub struct PaintInfo {
pub metadata: Vec<PaintMetadata>, pub metadata: Vec<PaintMetadata>,
} }
// TODO(pcwalton): Add clamp/repeat options.
#[derive(Debug)] #[derive(Debug)]
pub struct PaintMetadata { pub struct PaintMetadata {
/// The location of the texture. /// The location of the texture.

View File

@ -532,7 +532,7 @@ impl I32x2 {
// Comparisons // Comparisons
// TODO(pcwalton): Make a `U32x2` type and use that! // TODO(pcwalton): Use the `U32x2` type!
#[inline] #[inline]
pub fn packed_eq(self, other: I32x2) -> U32x4 { pub fn packed_eq(self, other: I32x2) -> U32x4 {
self.to_i32x4().packed_eq(other.to_i32x4()) self.to_i32x4().packed_eq(other.to_i32x4())

View File

@ -325,7 +325,7 @@ impl<D> UIPresenter<D> where D: Device {
self.draw_solid_rects_with_vertex_data(device, &vertex_data, index_data, color, false); 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) { fn draw_line(&self, device: &D, from: Vector2I, to: Vector2I, color: ColorU) {
let vertex_data = vec![DebugSolidVertex::new(from), DebugSolidVertex::new(to)]; let vertex_data = vec![DebugSolidVertex::new(from), DebugSolidVertex::new(to)];
self.draw_solid_rects_with_vertex_data(device, &vertex_data, &[0, 1], color, false); self.draw_solid_rects_with_vertex_data(device, &vertex_data, &[0, 1], color, false);