Browse Source

update: remove dead code

dev
Dnomd343 2 years ago
parent
commit
38d45befb8
  1. 3
      assets/china-ip.py
  2. 1
      include/common/system.h
  3. 1
      src/bcrypt/hash.c

3
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]

1
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);

1
src/bcrypt/hash.c

@ -1,4 +1,3 @@
#include <stdint.h>
#include <stdlib.h>
#include "bcrypt.h"
#include "logger.h"

Loading…
Cancel
Save