From dc274569c473d67129507d8e159c649737d96dfb Mon Sep 17 00:00:00 2001 From: juan Date: Sat, 2 Apr 2022 14:31:05 +0800 Subject: [PATCH] remove useless stuff --- semester2/challenge1/main.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/semester2/challenge1/main.c b/semester2/challenge1/main.c index a18d0f1..d31dd8d 100644 --- a/semester2/challenge1/main.c +++ b/semester2/challenge1/main.c @@ -27,19 +27,6 @@ const char *genreMap[] = {"Action", "Adventure", "Animation", "Children", //输入电影风格返回其映射的id int getGenreID(char *style) { - - // int index = 0; - // const char *genreMap[] = {"Action", "Adventure", "Animation", "Children's", - // "Comedy", "Crime", "Documentary", "Drama", - // "Fantasy", "Film-Noir", "Horror", "IMAX", "Musical", - // "Mystery", "Romance", "Sci-Fi", "Thriller", - // "War", "Western"}; - - // while (strcmp(genreMap[index], style) != 0) - // { - // index++; - // } - int found = 0; int i; for (i = 0; i < NUM_GENRES - 1; i++) { @@ -341,4 +328,4 @@ Genres *appendGenres(Genres *head, int id) ptr->next = new; return head; -} \ No newline at end of file +}