From b704ed150c0e144c8ac929d7c8d40876ef35a772 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Sat, 28 Nov 2015 15:16:59 -0600 Subject: Remove unused struct Plugin --- .../gnunet/gnunet/files/plugin_datastore_emscripten.c | 18 ------------------ 1 file changed, 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 @@ -30,18 +30,6 @@ #include "gnunet_datastore_plugin.h" -/** - * 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; } -- cgit v1.2.3-18-g5258