Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 26595ac

Browse files
committed
removed unused functions
1 parent 2aebceb commit 26595ac

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

lib/ui/lerp.dart

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,3 @@ double _lerpDouble(double a, double b, double t) {
3737
double _lerpInt(int a, int b, double t) {
3838
return a + (b - a) * t;
3939
}
40-
41-
/// Same as [num.clamp] but specialized for non-null [int].
42-
int _clampInt(int value, int min, int max) {
43-
assert(min <= max);
44-
if (value < min) {
45-
return min;
46-
} else if (value > max) {
47-
return max;
48-
} else {
49-
return value;
50-
}
51-
}

lib/web_ui/lib/lerp.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,3 @@ double? lerpDouble(num? a, num? b, double t) {
2828
double _lerpDouble(double a, double b, double t) {
2929
return a * (1.0 - t) + b * t;
3030
}
31-
32-
/// Linearly interpolate between two integers.
33-
///
34-
/// Same as [lerpDouble] but specialized for non-null `int` type.
35-
double _lerpInt(int a, int b, double t) {
36-
return a * (1.0 - t) + b * t;
37-
}

0 commit comments

Comments
 (0)