Commit 1fcfe266 authored by Michael Tremer's avatar Michael Tremer

network: Drop useless loc_network_match_asn function

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent b2fcf7de
......@@ -118,7 +118,6 @@ global:
loc_network_has_flag;
loc_network_is_subnet;
loc_network_match_address;
loc_network_match_asn;
loc_network_match_country_code;
loc_network_new;
loc_network_new_from_string;
......
......@@ -53,7 +53,6 @@ int loc_network_match_country_code(struct loc_network* network, const char* coun
uint32_t loc_network_get_asn(struct loc_network* network);
int loc_network_set_asn(struct loc_network* network, uint32_t asn);
int loc_network_match_asn(struct loc_network* network, uint32_t asn);
int loc_network_has_flag(struct loc_network* network, uint32_t flag);
int loc_network_set_flag(struct loc_network* network, uint32_t flag);
......
......@@ -405,10 +405,6 @@ LOC_EXPORT int loc_network_set_asn(struct loc_network* network, uint32_t asn) {
return 0;
}
LOC_EXPORT int loc_network_match_asn(struct loc_network* network, uint32_t asn) {
return network->asn == asn;
}
LOC_EXPORT int loc_network_has_flag(struct loc_network* network, uint32_t flag) {
return network->flags & flag;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment