Skip to content

Commit 4fd271f

Browse files
committed
fix the built and remove unused functions
1 parent 34a6cfd commit 4fd271f

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"ftio.h": "c",
4444
"pthread.h": "c",
4545
"perlin.h": "c",
46-
"librt.h": "c"
46+
"librt.h": "c",
47+
"export.h": "c"
4748
}
4849
}

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# ::: :::::::: #
44
# Makefile :+: :+: :+: #
55
# +:+ +:+ +:+ #
6-
# By: sklepper <sklepper@student.42.fr> +#+ +:+ +#+ #
6+
# By: nihuynh <nihuynh@student.42.fr> +#+ +:+ +#+ #
77
# +#+#+#+#+#+ +#+ #
88
# Created: 2018/09/27 19:33:22 by nihuynh #+# #+# #
9-
# Updated: 2019/07/20 21:13:55 by sklepper ### ########.fr #
9+
# Updated: 2019/07/25 13:42:31 by nihuynh ### ########.fr #
1010
# #
1111
# **************************************************************************** #
1212

@@ -33,13 +33,13 @@ RENDER := camera.c cast.c filters.c light.c normal_mapping.c \
3333
perturbation.c post_process.c render.c texture_loader.c \
3434
texture_toolbox.c perlin.c perlin_texture.c skybox.c \
3535
pre_render.c light_utils.c
36-
RENDER_U := init_sdl.c error_sdl.c exit_sdl.c render_sdl.c loop_sdl.c \
37-
init_mthr_sdl.c render_mthr_sdl.c save_screenshot.c \
38-
render_pool.c render_time.c
36+
RENDER_U := init_sdl.c error_sdl.c exit_sdl.c loop_sdl.c render_time.c \
37+
init_mthr_sdl.c render_mthr_sdl.c save_screenshot.c
3938
TOOLS := free_scene.c free.c utils.c get_scenes.c update.c reload.c \
4039
load_tools.c hook.c free2.c list_toolbox.c
4140
SRC := $(INTERFACE) $(PARSER) $(RENDER) $(RENDER_U) $(TOOLS)
42-
SRC += main.c key_mapping.c test.c
41+
SRC += main.c key_mapping.c
42+
SRC_UNUSED := test.c render_pool.c render_sdl.c
4343
# directories :
4444
VPATH := ./srcs ./srcs/parser ./srcs/render ./srcs/tools \
4545
./srcs/interface ./srcs/render_utils

includes/ft_unit_test.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: nihuynh <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2019/05/23 04:20:38 by nihuynh #+# #+# */
9-
/* Updated: 2019/06/25 23:14:22 by nihuynh ### ########.fr */
9+
/* Updated: 2019/07/25 13:39:32 by nihuynh ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -19,6 +19,7 @@
1919

2020
# include "t_data.h"
2121
# include "export.h"
22+
# include "interface.h"
2223
# include "libft.h"
2324

2425
int reader_no_exit(char *filename, t_data *app);

includes/libui.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: nihuynh <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2018/11/28 03:32:43 by nihuynh #+# #+# */
9-
/* Updated: 2019/07/21 22:09:40 by nihuynh ### ########.fr */
9+
/* Updated: 2019/07/25 13:43:18 by nihuynh ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -53,7 +53,6 @@ struct s_sdl
5353
int height_vp;
5454
int thr_len;
5555
t_data_thr *data_thr;
56-
t_thr_pool *pool;
5756
SDL_Window *win;
5857
void (*key_map)(int*, SDL_Keycode, void*, bool state);
5958
void (*mouse_map)(SDL_Event*, void *);

srcs/render_utils/exit_sdl.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: nihuynh <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2018/11/30 12:52:36 by sklepper #+# #+# */
9-
/* Updated: 2019/07/24 18:40:50 by nihuynh ### ########.fr */
9+
/* Updated: 2019/07/25 13:42:48 by nihuynh ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -21,8 +21,6 @@ void exit_sdl(t_sdl *sdl)
2121
SDL_DestroyWindow(sdl->win);
2222
if (sdl->data_thr != NULL)
2323
ft_memdel((void**)&sdl->data_thr);
24-
if (sdl->pool != NULL)
25-
destroy_pool(sdl->pool);
2624
if (sdl->img.pixels)
2725
ft_memdel((void**)&sdl->img.pixels);
2826
ft_memdel((void**)&sdl);

0 commit comments

Comments
 (0)