@@ -126,7 +126,6 @@ def _reset_text(
126126 line_spacing : Optional [float ] = None ,
127127 scale : Optional [int ] = None ,
128128 ) -> None :
129-
130129 # Store all the instance variables
131130 if font is not None :
132131 self ._font = font
@@ -284,8 +283,6 @@ def _line_spacing_ypixels(font: FontProtocol, line_spacing: float) -> int:
284283 def _text_bounding_box (
285284 self , text : str , font : FontProtocol
286285 ) -> Tuple [int , int , int , int , int , int ]:
287-
288-
289286 bbox = font .get_bounding_box ()
290287 if len (bbox ) == 4 :
291288 ascender_max , descender_max = bbox [1 ], - bbox [3 ]
@@ -372,7 +369,6 @@ def _place_text(
372369 # when copying glyph bitmaps (this is important for slanted text
373370 # where rectangular glyph boxes overlap)
374371 ) -> Tuple [int , int , int , int ]:
375-
376372 # placeText - Writes text into a bitmap at the specified location.
377373 #
378374 # Note: scale is pushed up to Group level
@@ -463,7 +459,6 @@ def _blit(
463459 skip_index : int = None , # palette index that will not be copied
464460 # (for example: the background color of a glyph)
465461 ) -> None :
466-
467462 if hasattr (bitmap , "blit" ): # if bitmap has a built-in blit function, call it
468463 # this function should perform its own input checks
469464 bitmap .blit (
0 commit comments