From 14654d5c97663d5f2552b9f27620c8d829dd8d52 Mon Sep 17 00:00:00 2001 From: Neel Chauhan Date: Fri, 23 Aug 2019 14:04:05 -0400 Subject: Remove the unused circuit_type field from hs_ident_circuit_t and hs_ident_circuit_new() --- src/feature/hs/hs_ident.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/feature/hs/hs_ident.c') diff --git a/src/feature/hs/hs_ident.c b/src/feature/hs/hs_ident.c index 8fd0013941..a00e55ec23 100644 --- a/src/feature/hs/hs_ident.c +++ b/src/feature/hs/hs_ident.c @@ -13,14 +13,10 @@ /* Return a newly allocated circuit identifier. The given public key is copied * identity_pk into the identifier. */ hs_ident_circuit_t * -hs_ident_circuit_new(const ed25519_public_key_t *identity_pk, - hs_ident_circuit_type_t circuit_type) +hs_ident_circuit_new(const ed25519_public_key_t *identity_pk) { - tor_assert(circuit_type == HS_IDENT_CIRCUIT_INTRO || - circuit_type == HS_IDENT_CIRCUIT_RENDEZVOUS); hs_ident_circuit_t *ident = tor_malloc_zero(sizeof(*ident)); ed25519_pubkey_copy(&ident->identity_pk, identity_pk); - ident->circuit_type = circuit_type; return ident; } -- cgit v1.2.3-54-g00ecf