cleanup more warnings and deprecated function use

This commit is contained in:
Henry Schimke
2022-12-30 17:00:35 -06:00
parent b383d7b0d4
commit 29a4040f2d
38 changed files with 158 additions and 133 deletions

View File

@@ -81,6 +81,7 @@ impl BitMatrix {
// bits = new int[rowSize * height];
}
#[allow(dead_code)]
fn with_all_data(&self, width: u32, height: u32, rowSize: usize, bits: Vec<u32>) -> Self {
Self {
width,
@@ -168,7 +169,7 @@ impl BitMatrix {
if bitsPos > rowStartPos {
//if rowLength == -1 {
if first_run {
first_run = false;
// first_run = false;
rowLength = bitsPos - rowStartPos;
} else if bitsPos - rowStartPos != rowLength {
return Err(Exceptions::IllegalArgumentException(