Commit bcd8c0b0ebce807b5f58303fd48dc9a3e7e7605b

Werner Lemberg 2013-08-27T21:36:03

Remove `FT_SqrtFixed' function. It's no longer used. * include/freetype/internal/ftcalc.h, src/base/ftcalc.c: Do it.

diff --git a/ChangeLog b/ChangeLog
index 03ac4d7..5647367 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2013-08-27  Werner Lemberg  <wl@gnu.org>
 
+	Remove `FT_SqrtFixed' function.
+
+	It's no longer used.
+
+	* include/freetype/internal/ftcalc.h, src/base/ftcalc.c: Do it.
+
+2013-08-27  Werner Lemberg  <wl@gnu.org>
+
 	[autofit] While tracing, report script names instead of ID values.
 
 	* src/autofit/afglobal.c (af_script_names) [FT_DEBUG_LEVEL_TRACE]:
diff --git a/include/freetype/internal/ftcalc.h b/include/freetype/internal/ftcalc.h
index faac3a3..03bd68e 100644
--- a/include/freetype/internal/ftcalc.h
+++ b/include/freetype/internal/ftcalc.h
@@ -27,10 +27,12 @@
 FT_BEGIN_HEADER
 
 
+#if 0
+
   /*************************************************************************/
   /*                                                                       */
   /* <Function>                                                            */
-  /*    FT_FixedSqrt                                                       */
+  /*    FT_SqrtFixed                                                       */
   /*                                                                       */
   /* <Description>                                                         */
   /*    Computes the square root of a 16.16 fixed-point value.             */
@@ -47,6 +49,8 @@ FT_BEGIN_HEADER
   FT_BASE( FT_Int32 )
   FT_SqrtFixed( FT_Int32  x );
 
+#endif /* 0 */
+
 
   /*************************************************************************/
   /*                                                                       */
diff --git a/src/base/ftcalc.c b/src/base/ftcalc.c
index b66f529..b23b4d4 100644
--- a/src/base/ftcalc.c
+++ b/src/base/ftcalc.c
@@ -816,6 +816,8 @@
   }
 
 
+#if 0
+
   /* documentation is in ftcalc.h */
 
   FT_BASE_DEF( FT_Int32 )
@@ -850,6 +852,8 @@
     return (FT_Int32)root;
   }
 
+#endif /* 0 */
+
 
   /* documentation is in ftcalc.h */