Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
WanzenBug committed Sep 30, 2024
1 parent aa4ffea commit 59a0ba6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
11 changes: 0 additions & 11 deletions src/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,6 @@ impl CorrectedDataStream {
}
}

/* ***********************************************************************
* Decoder algorithm
*/
#[derive(Copy, Clone)]
pub struct DataStream {
pub raw: [u8; MAX_PAYLOAD_SIZE],
pub data_bits: usize,
pub ptr: usize,
pub data: [u8; MAX_PAYLOAD_SIZE],
}

/// Given a grid try to decode and write it to the output writer
///
/// This tries to read the bit patterns from a [Grid](trait.Grid.html), correct
Expand Down
7 changes: 0 additions & 7 deletions src/detect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ pub struct CapStone {
pub c: Perspective,
}

#[derive(Debug, Clone)]
pub struct PolygonScoreData {
pub ref_0: Point,
pub scores: [i32; 4],
pub corners: [Point; 4],
}

/// Find all 'capstones' in a given image.
///
/// A Capstones is the locator pattern of a QR code. Every QR code has 3 of
Expand Down
5 changes: 0 additions & 5 deletions src/identify/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ use crate::{
/// normal [Grid](trait.Grid.html) that can be decoded.
#[derive(Debug, Clone)]
pub struct SkewedGridLocation {
pub caps: [CapStone; 3],
pub align: Point,
pub grid_size: usize,
pub c: geometry::Perspective,
}
Expand Down Expand Up @@ -101,11 +99,8 @@ impl SkewedGridLocation {
}

let c = setup_perspective(img, &group, align, grid_size)?;
let caps = [group.0, group.1, group.2];

Some(SkewedGridLocation {
align,
caps,
grid_size,
c,
})
Expand Down

0 comments on commit 59a0ba6

Please sign in to comment.