Skip to content

Commit 50c03a9

Browse files
author
Your Name
committed
removed unused private functions (_drawDestroyEffect)
1 parent 167bb48 commit 50c03a9

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

lib/providers/badge_message_provider.dart

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -283,29 +283,3 @@ Future<void> transferCupidAnimation(
283283
List<List<int>> boolToIntBitmap(List<List<bool>> bitmap) {
284284
return bitmap.map((row) => row.map((b) => b ? 1 : 0).toList()).toList();
285285
}
286-
287-
void _drawDestroyEffect(
288-
List<List<bool>> canvas, int cx, int cy, int frame, int w, int h) {
289-
int length = frame + 1;
290-
List<List<int>> dirs = [
291-
[1, 0],
292-
[-1, 0],
293-
[0, 1],
294-
[0, -1],
295-
[1, 1],
296-
[1, -1],
297-
[-1, 1],
298-
[-1, -1]
299-
];
300-
for (var d in dirs) {
301-
for (int i = 1; i <= length; i++) {
302-
int px = cx + d[0] * i;
303-
int py = cy + d[1] * i;
304-
if (py >= 0 && py < h && px >= 0 && px < w) {
305-
canvas[py][px] = true;
306-
}
307-
}
308-
}
309-
}
310-
311-
/// Transfers the Equalizer animation to the badge hardware.

0 commit comments

Comments
 (0)