summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Toorop <willem@nlnetlabs.nl>2016-10-17 22:08:50 +0200
committerWillem Toorop <willem@nlnetlabs.nl>2016-10-17 22:08:50 +0200
commitb6413db21be20ea65366d47893a570782ceec7d8 (patch)
tree44f3c59f7be39edc0e65aefbd540a9d895c539c6
parentc4be9992a306af40b16bcc72c853ae1223bcd148 (diff)
downloadldns-b6413db21be20ea65366d47893a570782ceec7d8.tar.gz
Strip unused function, make lint happy
-rw-r--r--examples/ldns-signzone.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/examples/ldns-signzone.c b/examples/ldns-signzone.c
index 975c534c..2adc9431 100644
--- a/examples/ldns-signzone.c
+++ b/examples/ldns-signzone.c
@@ -288,29 +288,6 @@ find_or_create_pubkey(const char *keyfile_name_base, ldns_key *key, ldns_zone *o
}
}
-static void
-strip_dnssec_records(ldns_zone *zone)
-{
- ldns_rr_list *new_list;
- ldns_rr *cur_rr;
-
- new_list = ldns_rr_list_new();
-
- while ((cur_rr = ldns_rr_list_pop_rr(ldns_zone_rrs(zone)))) {
- if (ldns_rr_get_type(cur_rr) == LDNS_RR_TYPE_RRSIG ||
- ldns_rr_get_type(cur_rr) == LDNS_RR_TYPE_NSEC ||
- ldns_rr_get_type(cur_rr) == LDNS_RR_TYPE_NSEC3
- ) {
-
- ldns_rr_free(cur_rr);
- } else {
- ldns_rr_list_push_rr(new_list, cur_rr);
- }
- }
- ldns_rr_list_free(ldns_zone_rrs(zone));
- ldns_zone_set_rrs(zone, new_list);
-}
-
int
main(int argc, char *argv[])
{