Remove more unnecessary stuff
This commit is contained in:
parent
b84c0e7d45
commit
7662701cbc
1 changed files with 0 additions and 10 deletions
|
@ -13,7 +13,6 @@
|
|||
struct _skipstone_service {
|
||||
skipstone_link *link;
|
||||
skipstone_map *endpoints;
|
||||
skipstone_queue *pending;
|
||||
|
||||
size_t bufsz;
|
||||
void *buf;
|
||||
|
@ -34,18 +33,11 @@ skipstone_service *skipstone_service_new(skipstone_link *link) {
|
|||
goto error_map_new_endpoints;
|
||||
}
|
||||
|
||||
if ((service->pending = skipstone_queue_new()) == NULL) {
|
||||
goto error_queue_new_pending;
|
||||
}
|
||||
|
||||
service->link = link;
|
||||
service->bufsz = SKIPSTONE_MESSAGE_MAX_PAYLOAD;
|
||||
|
||||
return service;
|
||||
|
||||
error_queue_new_pending:
|
||||
skipstone_map_destroy(service->endpoints, free);
|
||||
|
||||
error_map_new_endpoints:
|
||||
free(service->buf);
|
||||
|
||||
|
@ -59,8 +51,6 @@ error_malloc_service:
|
|||
void skipstone_service_destroy(skipstone_service *service) {
|
||||
skipstone_map_destroy(service->endpoints, free);
|
||||
|
||||
skipstone_queue_destroy(service->pending);
|
||||
|
||||
free(service->buf);
|
||||
|
||||
free(service);
|
||||
|
|
Loading…
Add table
Reference in a new issue