diff src/coord.c @ 140:0de8fd11271e

Use macro to simplify the code. Many code snippets are repeated annoying. Just because we manipulate a common structure of data. They are move to macros to make it simple and meaning.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 23 Sep 2008 08:28:14 +0800
parents 1695a4b02b14
children d11aa8fc06c7
line wrap: on
line diff
--- a/src/coord.c	Mon Sep 22 19:22:57 2008 +0800
+++ b/src/coord.c	Tue Sep 23 08:28:14 2008 +0800
@@ -166,14 +166,6 @@
     return next;
 }
 
-void sh_attach_coord(shape_t *sh, coord_t *coord) {
-    sh->coord = coord;
-}
-
-void sh_detach_coord(shape_t *sh) {
-    sh->coord = NULL;
-}
-
 #ifdef UNITTEST
 
 #include <CUnit/Basic.h>