From 7ced4d7fca3a60389c9458f9fe8c7c7933ef4b45 Mon Sep 17 00:00:00 2001 From: fdai8040 Date: Sun, 4 Feb 2024 13:58:38 +0000 Subject: [PATCH] refactoring: doppelt_schon_in_pong.c --- test/Pong/test_updateBallPosition.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test/Pong/test_updateBallPosition.c b/test/Pong/test_updateBallPosition.c index 73cb040..7c4d814 100644 --- a/test/Pong/test_updateBallPosition.c +++ b/test/Pong/test_updateBallPosition.c @@ -2,20 +2,7 @@ #include "unity.h" #include "pong.h" -typedef struct { - int x; - int y; - int speedX; - int speedY; -} Ball; - void updateBallPosition(Ball *ball) { - struct Ball { - int x; - int y; - int speedX; - int speedY; - }; ball->x += ball->speedX; ball->y += ball->speedY;