From 8f6a69d8fddcae6b54d25cf02dd56f0afce6a075 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Thu, 23 Feb 2012 16:35:11 +0000
Subject: [PATCH] vertex data removed and memory leaks fixed

---
 src/general.h |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/general.h b/src/general.h
index 6d2ab06..aff7680 100644
--- a/src/general.h
+++ b/src/general.h
@@ -112,10 +112,10 @@
 
 /** @brief Data structure of all data connected to a vertex
  *
- *  ts_vertex_data holds the data for one single point (bead, vertex). To understand how to use it
+ *  ts_vertex holds the data for one single point (bead, vertex). To understand how to use it
  *  here is a detailed description of the fields in the data structure. */
-struct ts_vertex_data {
-        ts_uint idx; /**< Represents index of the vertex point. Should become obsolete, since it is also present in ts_vertex structure. */        
+struct ts_vertex {
+        ts_uint idx;
         ts_double x; /**< The x coordinate of vertex. */
         ts_double y; /**< The y coordinate of vertex. */
         ts_double z; /**< The z coordinate of vertex. */
@@ -134,12 +134,6 @@
         ts_double xk;
         ts_double c;
         ts_uint id;
-};
-typedef struct ts_vertex_data ts_vertex_data;
-
-struct ts_vertex {
-        ts_uint idx;
-        ts_vertex_data *data;
 };
 typedef struct ts_vertex ts_vertex;
 

--
Gitblit v1.9.3