Commit a1460704d9389cd4ae15ac104195c73798001f14

Werner Lemberg 2016-02-07T11:42:37

[cff] Minor. * src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_sqrt>: Remove dead code.

diff --git a/ChangeLog b/ChangeLog
index 42f93b0..a045395 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2016-02-07  Werner Lemberg  <wl@gnu.org>
 
+	[cff] Minor.
+
+	* src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_sqrt>:
+	Remove dead code.
+
+2016-02-07  Werner Lemberg  <wl@gnu.org>
+
 	[cff] Implement missing operators in new engine (except `random').
 
 	* src/cff/cf2font.h (CF2_STORAGE_SIZE): New macro.
diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c
index 36a353d..df57d67 100644
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -2082,15 +2082,14 @@
 
           if ( args[0] > 0 )
           {
-            FT_Int    count = 9;
-            FT_Fixed  root  = args[0];
+            FT_Fixed  root = args[0];
             FT_Fixed  new_root;
 
 
             for (;;)
             {
               new_root = ( root + FT_DivFix( args[0], root ) + 1 ) >> 1;
-              if ( new_root == root || count <= 0 )
+              if ( new_root == root )
                 break;
               root = new_root;
             }