From fd71c5952690f419b919eb3bc5facc9d332a98b9 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sun, 3 Nov 2013 19:39:25 +0100 Subject: changed action API to be backwards compatible with 0.5 on source level --- plugins.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'plugins.c') diff --git a/plugins.c b/plugins.c index dcc02df5..b906b7c6 100644 --- a/plugins.c +++ b/plugins.c @@ -530,17 +530,6 @@ plug_init_plugin (DB_plugin_t* (*loadfunc)(DB_functions_t *), void *handle) { } #endif - // deprecated 1.4 DB_plugin_action_t hack - // this allows to check if the action is coming from pre-1.5 plugin without - // having a plugin pointer - if (plugin_api->get_actions && plugin_api->api_vmajor == 1 && plugin_api->api_vminor <= 4) { - DB_plugin_action_t *actions = plugin_api->get_actions (NULL); - while (actions) { - actions->flags |= DB_ACTION_USING_API_14; - actions = actions->next; - } - } - plugin_t *plug = malloc (sizeof (plugin_t)); memset (plug, 0, sizeof (plugin_t)); plug->plugin = plugin_api; -- cgit v1.2.3