From 9a1f16ae3affc4db83f2eb2623418ac5cff2af03 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Sat, 09 Mar 2019 20:07:56 +0000 Subject: [PATCH] Code cleanup --- src/plugins/default_hard_constraints.c | 16 +--------------- 1 files changed, 1 insertions(+), 15 deletions(-) diff --git a/src/plugins/default_hard_constraints.c b/src/plugins/default_hard_constraints.c index ba5b64b..235454d 100644 --- a/src/plugins/default_hard_constraints.c +++ b/src/plugins/default_hard_constraints.c @@ -4,23 +4,13 @@ #include "vertex.h" #include "cell.h" char plugin_name[] = "Default hard constraints for vertex move"; -char plugin_description[]= "Checks proximity with neighbors and with foreign vertices"; +char plugin_description[]= "Checks proximity with neighbors, vertices in neighboring cells and with foreign vertices that may be in vicinity"; char plugin_author[] = "SAMO PENIC"; ts_plugin_details *init (){ -// ts_fprintf(stdout,"Hello. Plugin %s is initiating. This will load the details section of the plugin\n", plugin_name); - ts_plugin_details *details=(ts_plugin_details *)calloc(1,sizeof(ts_plugin_details)); details->name = plugin_name; return details; -} - -void at_start(int argc, char **argv){ -} - -void *after_vesicle_init(ts_vesicle *vesicle){ - ts_fprintf(stdout,"Plugin \"%s\" is loaded.\n", plugin_name); - return vesicle; } ts_bool vm_hard_constraint(ts_vesicle *vesicle, ts_vertex *vtx, ts_vertex *ovtx){ @@ -28,7 +18,6 @@ ts_uint cellidx; ts_double dist; ts_bool retval; - //distance with neighbours check for(i=0;i<vtx->neigh_no;i++){ dist=vtx_distance_sq(vtx,vtx->neigh[i]); @@ -55,6 +44,3 @@ return TS_SUCCESS; } -void cleanup(){ - ts_fprintf(stdout,"Goodbye from plugin %s. This functions clears what would be created in init...\n",plugin_name); -} -- Gitblit v1.9.3