From: Matthew Owens <matthew@owens.tech>
Date: Sat, 3 Oct 2020 11:29:54 +0000 (+0100)
Subject: removed bricks, since we're not making breakout
X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=3b55cd81652afd4b7414719e3b26a1a25b3ff586;p=pong.git

removed bricks, since we're not making breakout
---

diff --git a/src/main.c b/src/main.c
index 8eb04c4..139c5b8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,11 +14,6 @@ typedef struct Colour {
 	Uint8 a;
 } Colour;
 
-typedef struct Box {
-	Colour c;
-	SDL_Rect r;
-} Box;
-
 typedef struct Vbox {
 	Colour c;
 	SDL_Rect r;
@@ -37,7 +32,6 @@ static Vec2di windowSize;
 static Vec2df windowScale;
 
 Vbox pad, ball;
-Box *vec_bricks = NULL;
 Vec2df vline[2];
 
 static void paddle_init()
@@ -70,12 +64,6 @@ static void ball_init()
 	ball.v.y = speed;
 }
 
-static void box_render(const Box *b)
-{
-	SDL_SetRenderDrawColor(renderer, b->c.r, b->c.g, b->c.b, b->c.a);
-	SDL_RenderFillRect(renderer, &b->r);
-}
-
 static void vbox_render(const Vbox *b)
 {
 	SDL_SetRenderDrawColor(renderer, b->c.r, b->c.g, b->c.b, b->c.a);