Skip to content

Commit

Permalink
chore: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hschimke committed Jan 4, 2024
1 parent d98c5ca commit a70e9c5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions crates/one-d-proc-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,12 @@ fn impl_one_d_reader_macro(ast: &syn::DeriveInput) -> TokenStream {
}
result.putMetadata(RXingResultMetadataType::ORIENTATION, RXingResultMetadataValue::Orientation(orientation));
// Update result points
// let points = result.getRXingResultPoints();
// if points != null {
let height = rotated_image.get_height();
// for point in result.getRXingResultPointsMut().iter_mut() {
let total_points = result.getRXingResultPoints().len();
let points = result.getRXingResultPointsMut();
for i in 0..total_points{
// for (int i = 0; i < points.length; i++) {
points[i] = Point::new(height as f32- points[i].getY() - 1.0, points[i].getX());
}
// }

Ok(result)
} else {
Expand Down Expand Up @@ -167,9 +162,6 @@ fn impl_one_d_writer_macro(ast: &syn::DeriveInput) -> TokenStream {
if let Some(EncodeHintValue::Margin(margin)) = hints.get(&EncodeHintType::MARGIN) {
sidesMargin = margin.parse::<u32>().unwrap();
}
// if hints.contains_key(&EncodeHintType::MARGIN) {
// sidesMargin = Integer.parseInt(hints.get(EncodeHintType.MARGIN).toString());
// }

let code = self.encode_oned_with_hints(contents, hints)?;

Expand Down

0 comments on commit a70e9c5

Please sign in to comment.