Skip to content

Commit

Permalink
Removing unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
o0Ignition0o committed Oct 28, 2017
1 parent 2eebc50 commit ac8ff9f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tessellation/src/path_stroke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,6 @@ impl<'l, Output: 'l + GeometryBuilder<Vertex>> StrokeBuilder<'l, Output> {
);
}

let neg_if_right = if front_side.is_left() { 1.0 } else { -1.0 };
let prev_normal: Vec2 = vec2(-prev_tangent.y, prev_tangent.x);
let next_normal: Vec2 = vec2(-next_tangent.y, next_tangent.x);

Expand Down Expand Up @@ -813,7 +812,6 @@ impl<'l, Output: 'l + GeometryBuilder<Vertex>> StrokeBuilder<'l, Output> {
fn get_clip_intersections(&self, prev_normal: Vec2, next_normal: Vec2, normal: Vec2) -> (Vec2, Vec2) {
let miter_length = self.options.miter_limit * self.options.line_width;
let normal_limit = normal.normalize() * miter_length;
let limit_ratio = (normal.square_length() / normal_limit.square_length()).sqrt();

let normal_limit_perp = LineSegment{
from: point(normal_limit.x - normal_limit.y, normal_limit.y + normal_limit.x),
Expand Down

0 comments on commit ac8ff9f

Please sign in to comment.