[Tomoe-cvs 1223] CVS update: tomoe/recognizer

Back to archive index

Hiroyuki Ikezoe ikezo****@users*****
2006年 11月 27日 (月) 22:29:30 JST


Index: tomoe/recognizer/tomoe-recognizer-simple-logic.c
diff -u tomoe/recognizer/tomoe-recognizer-simple-logic.c:1.43 tomoe/recognizer/tomoe-recognizer-simple-logic.c:1.44
--- tomoe/recognizer/tomoe-recognizer-simple-logic.c:1.43	Mon Nov 27 22:24:40 2006
+++ tomoe/recognizer/tomoe-recognizer-simple-logic.c	Mon Nov 27 22:29:29 2006
@@ -17,7 +17,7 @@
  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  *  Boston, MA  02111-1307  USA
  *
- *  $Id: tomoe-recognizer-simple-logic.c,v 1.43 2006/11/27 13:24:40 ikezoe Exp $
+ *  $Id: tomoe-recognizer-simple-logic.c,v 1.44 2006/11/27 13:29:29 ikezoe Exp $
  */
 
 #include <stdlib.h>
@@ -238,15 +238,9 @@
 #define SQUARE_LENGTH(x, y) ((x) * (x) + (y) * (y))
 
 static gint
-sq_dist (gint x1, gint y1, gint x2, gint y2)
-{
-    return SQUARE_LENGTH (x1 - x2, y1 - y2);
-}
-
-static gint
 dist_tomoe_points (TomoePoint *a, TomoePoint *b)
 {
-    return sq_dist (a->x, a->y, b->x, b->y);
+    return SQUARE_LENGTH (a->x - b->x, a->y - b->y);
 }
 
 /*


tomoe-cvs メーリングリストの案内
Back to archive index