Remove unused imports.

This commit is contained in:
Nathan Vegdahl 2022-08-07 13:29:40 -07:00
parent b5bf580b96
commit fc7b8da17d
3 changed files with 1 additions and 5 deletions

View File

@ -1,7 +1,5 @@
#![allow(dead_code)] #![allow(dead_code)]
use kioku::Arena;
use crate::{ use crate::{
lerp::lerp_slice, lerp::lerp_slice,
math::{Point, Vector, Xform}, math::{Point, Vector, Xform},

View File

@ -253,7 +253,6 @@ impl<'a> Bucket<'a> {
where where
F: Fn((f32, f32, f32)) -> (f32, f32, f32), F: Fn((f32, f32, f32)) -> (f32, f32, f32),
{ {
use std::slice;
let mut data: Vec<u8> = Vec::with_capacity( let mut data: Vec<u8> = Vec::with_capacity(
std::mem::size_of::<f32>() std::mem::size_of::<f32>()
* (4 * (self.max.0 - self.min.0) * (self.max.1 - self.min.1)) as usize, * (4 * (self.max.0 - self.min.0) * (self.max.1 - self.min.1)) as usize,

View File

@ -1,10 +1,9 @@
use crate::{ use crate::{
color::Color,
lerp::lerp_slice, lerp::lerp_slice,
math::XformFull, math::XformFull,
ray::{LocalRay, Ray}, ray::{LocalRay, Ray},
scene::{Assembly, InstanceType, Object}, scene::{Assembly, InstanceType, Object},
shading::{SimpleSurfaceShader, SurfaceShader}, shading::SurfaceShader,
surface::SurfaceIntersection, surface::SurfaceIntersection,
}; };