freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master bc1029b: * src/raster/ftraster.c (Render_Single_Pass)


From: Werner Lemberg
Subject: [freetype2] master bc1029b: * src/raster/ftraster.c (Render_Single_Pass): Remove dead code.
Date: Fri, 25 Jun 2021 18:21:34 -0400 (EDT)

branch: master
commit bc1029b9c5a1eef74037dbe4e5e4598e763d0997
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * src/raster/ftraster.c (Render_Single_Pass): Remove dead code.
---
 ChangeLog             |  4 ++++
 src/raster/ftraster.c | 12 +-----------
 2 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ab619cd..cc5c1f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-06-25  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+       * src/raster/ftraster.c (Render_Single_Pass): Remove dead code.
+
 2021-06-25  Werner Lemberg  <wl@gnu.org>
 
        [base] Add trace level to logging output.
diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c
index 828c136..a1cbf62 100644
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -149,9 +149,6 @@
   /*************************************************************************/
   /*************************************************************************/
 
-  /* define DEBUG_RASTER if you want to compile a debugging version */
-/* #define DEBUG_RASTER */
-
 
   /*************************************************************************/
   /*************************************************************************/
@@ -3052,14 +3049,8 @@
         if ( ras.error != Raster_Err_Raster_Overflow )
           return ras.error;
 
-        ras.error = Raster_Err_Ok;
-
         /* sub-banding */
 
-#ifdef DEBUG_RASTER
-        ClearBand( RAS_VARS TRUNC( ras.minY ), TRUNC( ras.maxY ) );
-#endif
-
         i = ras.band_stack[ras.band_top].y_min;
         j = ras.band_stack[ras.band_top].y_max;
 
@@ -3068,9 +3059,8 @@
         if ( ras.band_top >= 7 || k < i )
         {
           ras.band_top = 0;
-          ras.error    = FT_THROW( Raster_Overflow );
 
-          return ras.error;
+          return ras.error;  /* still Raster_Overflow */
         }
 
         ras.band_stack[ras.band_top + 1].y_min = k;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]