From ff2d78256b6b2288e9a5954a49fe4babaf6400cb Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Mon, 1 Jan 2018 23:36:39 +0100 Subject: Implementing rendering --- src/gui/button.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/gui/button.c') diff --git a/src/gui/button.c b/src/gui/button.c index 03addf8..a55796d 100644 --- a/src/gui/button.c +++ b/src/gui/button.c @@ -7,8 +7,6 @@ #include bool button_is_selected(int x, int y, Button *button) { - assert(x >= 0); - assert(y >= 0); assert(button != NULL); int x1 = button->component.x_pos; int y1 = button->component.y_pos; @@ -28,8 +26,6 @@ void button_print(Component *parameterSelf) { } void button_click_test(int x, int y, Component *parameterSelf) { - assert(x >= 0); - assert(y >= 0); assert(parameterSelf != NULL); Button *self = (Button *) parameterSelf; if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) { @@ -37,8 +33,6 @@ void button_click_test(int x, int y, Component *parameterSelf) { } void button_click_add_constraint(int x, int y, Component *parameterSelf) { - assert(x >= 0); - assert(y >= 0); assert(parameterSelf != NULL); Button *self = (Button *) parameterSelf; if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) { @@ -47,8 +41,6 @@ void button_click_add_constraint(int x, int y, Component *parameterSelf) { } void button_click_show_hide(int x, int y, Component *parameterSelf) { - assert(x >= 0); - assert(y >= 0); assert(parameterSelf != NULL); Button *self = (Button *) parameterSelf; if (button_is_selected(x, y, self)) { @@ -61,8 +53,6 @@ void button_click_show_hide(int x, int y, Component *parameterSelf) { } void button_click_exit(int x, int y, Component *parameterSelf) { - assert(x >= 0); - assert(y >= 0); assert(parameterSelf != NULL); Button *self = (Button *) parameterSelf; if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) { @@ -71,8 +61,6 @@ void button_click_exit(int x, int y, Component *parameterSelf) { } void button_click_less_frame(int x, int y, Component *parameterSelf) { - assert(x >= 0); - assert(y >= 0); assert(parameterSelf != NULL); Button *self = (Button *) parameterSelf; if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) { @@ -85,8 +73,6 @@ void button_click_less_frame(int x, int y, Component *parameterSelf) { } void button_click_more_frame(int x, int y, Component *parameterSelf) { - assert(x >= 0); - assert(y >= 0); assert(parameterSelf != NULL); Button *self = (Button *) parameterSelf; if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) { @@ -99,8 +85,6 @@ void button_click_more_frame(int x, int y, Component *parameterSelf) { } void button_click_rendering(int x,int y, Component *parameterSelf) { - assert(x >= 0); - assert(y >= 0); assert(parameterSelf != NULL); Button *self = (Button *) parameterSelf; if (button_is_selected(x, y, self) && (mode == WAITING_BUTTON_SHOW || mode == WAITING_BUTTON_HIDE)) { @@ -109,8 +93,6 @@ void button_click_rendering(int x,int y, Component *parameterSelf) { } void button_click_none(int x, int y, Component *parameterSelf) { - assert(x >= 0); - assert(y >= 0); assert(parameterSelf != NULL); } -- cgit v1.2.3