diff options
author | David Barksdale <amatus@amatus.name> | 2015-11-28 15:16:59 -0600 |
---|---|---|
committer | David Barksdale <amatus@amatus.name> | 2015-11-28 15:16:59 -0600 |
commit | b704ed150c0e144c8ac929d7c8d40876ef35a772 (patch) | |
tree | c9a5a36b2da5b1b8889aa84922fa6954dd28eeac | |
parent | 2f53a96b8389a3f3271a43368e93a56fd702c461 (diff) |
Remove unused struct Plugin
-rw-r--r-- | gnunet-build/packages/gnunet/gnunet/files/plugin_datastore_emscripten.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gnunet-build/packages/gnunet/gnunet/files/plugin_datastore_emscripten.c b/gnunet-build/packages/gnunet/gnunet/files/plugin_datastore_emscripten.c index 2e55ac7..e1610f5 100644 --- a/gnunet-build/packages/gnunet/gnunet/files/plugin_datastore_emscripten.c +++ b/gnunet-build/packages/gnunet/gnunet/files/plugin_datastore_emscripten.c @@ -31,18 +31,6 @@ /** - * Context for all functions in this plugin. - */ -struct Plugin -{ - /** - * Our execution environment. - */ - struct GNUNET_DATASTORE_PluginEnvironment *env; -}; - - -/** * Get an estimate of how much space the database is * currently using. * @@ -584,12 +572,8 @@ libgnunet_plugin_datastore_emscripten_init (void *cls) { struct GNUNET_DATASTORE_PluginEnvironment *env = cls; struct GNUNET_DATASTORE_PluginFunctions *api; - struct Plugin *plugin; - plugin = GNUNET_new (struct Plugin); - plugin->env = env; api = GNUNET_new (struct GNUNET_DATASTORE_PluginFunctions); - api->cls = plugin; api->estimate_size = &emscripten_plugin_estimate_size; api->put = &emscripten_plugin_put; api->update = &emscripten_plugin_update; @@ -614,9 +598,7 @@ void * libgnunet_plugin_datastore_emscripten_done (void *cls) { struct GNUNET_DATASTORE_PluginFunctions *api = cls; - struct Plugin *plugin = api->cls; - GNUNET_free (plugin); GNUNET_free (api); return NULL; } |