Skip to content

Instantly share code, notes, and snippets.

@Green-Sky
Created September 18, 2024 06:57
Show Gist options
  • Save Green-Sky/60199323907fdc3862196da938abdedf to your computer and use it in GitHub Desktop.
Save Green-Sky/60199323907fdc3862196da938abdedf to your computer and use it in GitHub Desktop.
diff --git a/toxcore/tox.c b/toxcore/tox.c
index 67f7cc00..de805edc 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -1072,16 +1072,6 @@ void tox_kill(Tox *tox)
mem_delete(tox->sys.mem, tox);
}
-void tox_get_options(Tox *tox, struct Tox_Options *options)
-{
- tox_options_default(options);
- const Messenger_Options *m_options = &tox->m->options;
-
- // TODO(iphydf): Fill in the other options.
- tox_options_set_log_callback(options, tox->log_callback);
- tox_options_set_log_user_data(options, m_options->log_user_data);
-}
-
static uint32_t end_size(void)
{
return 2 * sizeof(uint32_t);
diff --git a/toxcore/tox_private.h b/toxcore/tox_private.h
index 934b32f2..fe86479a 100644
--- a/toxcore/tox_private.h
+++ b/toxcore/tox_private.h
@@ -44,16 +44,6 @@ Tox *tox_new_testing(const Tox_Options *options, Tox_Err_New *error, const Tox_O
void tox_lock(const Tox *tox);
void tox_unlock(const Tox *tox);
-/**
- * @brief Get a Tox_Options similar to the one used to create the Tox.
- *
- * Initialises the `options` object such that `tox_new` called with the passed
- * options will recreate the current @ref Tox instance.
- *
- * @param options the options object we want to initialise.
- */
-void tox_get_options(Tox *tox, struct Tox_Options *options);
-
/**
* Set the callback for the `friend_lossy_packet` event for a specific packet
* ID. Pass NULL to unset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment