Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
sepfy committed Oct 18, 2024
1 parent 85b0b96 commit 4df7bc3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions src/sctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,16 +585,6 @@ int sctp_is_connected(Sctp* sctp) {
return sctp->connected;
}

void sctp_destroy(Sctp* sctp) {
#if CONFIG_USE_USRSCTP
if (sctp) {
sctp_destroy_socket(sctp);
free(sctp);
sctp = NULL;
}
#endif
}

void sctp_onmessage(Sctp* sctp, void (*onmessage)(char* msg, size_t len, void* userdata, uint16_t sid)) {
sctp->onmessage = onmessage;
}
Expand Down
4 changes: 0 additions & 4 deletions src/sctp.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ typedef struct Sctp {
uint8_t buf[CONFIG_MTU];
} Sctp;

Sctp* sctp_create(DtlsSrtp* dtls_srtp);

void sctp_destroy(Sctp* sctp);

int sctp_create_socket(Sctp* sctp, DtlsSrtp* dtls_srtp);

void sctp_destroy_socket(Sctp* sctp);
Expand Down

0 comments on commit 4df7bc3

Please sign in to comment.