Skip to content

Commit

Permalink
remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
alaa-az committed Sep 8, 2024
1 parent 5a9b05e commit bc5448a
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions packages/linux_can/lib/src/platform_interface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1423,52 +1423,4 @@ class PlatformInterface {
}
});
}

// static int lengthToDlc(int dataLength) {
// if (dataLength < 0 || dataLength > 64) {
// throw RangeError.range(dataLength, 0, 64);
// }
// if (dataLength <= 8) {
// return dataLength;
// } else if (dataLength <= 12) {
// return 9;
// } else if (dataLength <= 16) {
// return 10;
// } else if (dataLength <= 20) {
// return 11;
// } else if (dataLength <= 24) {
// return 12;
// } else if (dataLength <= 32) {
// return 13;
// } else if (dataLength <= 48) {
// return 14;
// } else {
// // dataLength <= 64
// return 15;
// }
// }
//
// static int dlcToLength(int dlc) {
// if (dlc < 0 || dlc > 15) {
// throw RangeError.range(dlc, 0, 15);
// }
// switch (dlc) {
// case 9:
// return 12;
// case 10:
// return 16;
// case 11:
// return 20;
// case 12:
// return 24;
// case 13:
// return 32;
// case 14:
// return 48;
// case 15:
// return 64;
// default:
// return dlc;
// }
// }
}

0 comments on commit bc5448a

Please sign in to comment.