From 38d45befb815235529da8748d2d1714318794b68 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Tue, 7 Mar 2023 16:40:38 +0800 Subject: [PATCH] update: remove dead code --- assets/china-ip.py | 3 ++- include/common/system.h | 1 - src/bcrypt/hash.c | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/china-ip.py b/assets/china-ip.py index 7a2f8ef..94f06dc 100755 --- a/assets/china-ip.py +++ b/assets/china-ip.py @@ -22,7 +22,8 @@ for ipAddr in ipAddrs: try: ip = IP(ipAddr) # ip format check (ipv4 if ip.version() == 4 else ipv6).add(ip) - except: pass + except: + pass release = [('%s' if '/' in str(ip) else '%s/32') % str(ip) for ip in ipv4] # format into CIDR release += [('%s' if '/' in str(ip) else '%s/128') % str(ip) for ip in ipv6] diff --git a/include/common/system.h b/include/common/system.h index b8860d9..39e340b 100644 --- a/include/common/system.h +++ b/include/common/system.h @@ -8,7 +8,6 @@ int run_command(const char *command); void create_folder(const char *folder); uint8_t is_file_exist(const char *file); void save_file(const char *file, const char *content); -void download_file(const char *file, const char *url); void save_string_list(const char *file, char **string_list); void file_append(const char *base_file, const char *append_file); diff --git a/src/bcrypt/hash.c b/src/bcrypt/hash.c index 6ee37ed..60b1200 100644 --- a/src/bcrypt/hash.c +++ b/src/bcrypt/hash.c @@ -1,4 +1,3 @@ -#include #include #include "bcrypt.h" #include "logger.h"