summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/tox.api.h6
-rw-r--r--toxcore/tox.h6
-rw-r--r--toxcore/tox_api.c5
3 files changed, 0 insertions, 17 deletions
diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h
index f5e8cd7a..2767a62f 100644
--- a/toxcore/tox.api.h
+++ b/toxcore/tox.api.h
@@ -598,12 +598,6 @@ static class options {
598 MALLOC, 598 MALLOC,
599 } 599 }
600 600
601 /**
602 * Allocates a new $this object and initialises it with the values from the
603 * passed object.
604 */
605 void copy(const this rhs);
606
607 601
608 /** 602 /**
609 * Releases all resources associated with an options objects. 603 * Releases all resources associated with an options objects.
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 26378067..5497d9e7 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -727,12 +727,6 @@ typedef enum TOX_ERR_OPTIONS_NEW {
727struct Tox_Options *tox_options_new(TOX_ERR_OPTIONS_NEW *error); 727struct Tox_Options *tox_options_new(TOX_ERR_OPTIONS_NEW *error);
728 728
729/** 729/**
730 * Allocates a new Tox_Options object and initialises it with the values from the
731 * passed object.
732 */
733void tox_options_copy(struct Tox_Options *options, const struct Tox_Options *rhs);
734
735/**
736 * Releases all resources associated with an options objects. 730 * Releases all resources associated with an options objects.
737 * 731 *
738 * Passing a pointer that was not returned by tox_options_new results in 732 * Passing a pointer that was not returned by tox_options_new results in
diff --git a/toxcore/tox_api.c b/toxcore/tox_api.c
index af93bef4..b6c8c386 100644
--- a/toxcore/tox_api.c
+++ b/toxcore/tox_api.c
@@ -91,11 +91,6 @@ struct Tox_Options *tox_options_new(TOX_ERR_OPTIONS_NEW *error)
91 return NULL; 91 return NULL;
92} 92}
93 93
94void tox_options_copy(struct Tox_Options *lhs, const struct Tox_Options *rhs)
95{
96 *lhs = *rhs;
97}
98
99void tox_options_free(struct Tox_Options *options) 94void tox_options_free(struct Tox_Options *options)
100{ 95{
101 free(options); 96 free(options);