mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-13 03:03:33 +02:00
font-patcher: Remove unneeded code
[why] The selection is never used. Later in the code we use a sourceFont selection to paste the glyphs into it, but that is selected just there, before, and locally not totally. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
a19800195a
commit
355a7c55a8
@ -663,11 +663,9 @@ class font_patcher:
|
|||||||
# and only copy those that are not already contained in the source font
|
# and only copy those that are not already contained in the source font
|
||||||
if symbolFontStart == 0:
|
if symbolFontStart == 0:
|
||||||
symbolFont.selection.all()
|
symbolFont.selection.all()
|
||||||
self.sourceFont.selection.all()
|
|
||||||
careful = True
|
careful = True
|
||||||
else:
|
else:
|
||||||
symbolFont.selection.select((str("ranges"), str("unicode")), symbolFontStart, symbolFontEnd)
|
symbolFont.selection.select((str("ranges"), str("unicode")), symbolFontStart, symbolFontEnd)
|
||||||
self.sourceFont.selection.select((str("ranges"), str("unicode")), sourceFontStart, sourceFontEnd)
|
|
||||||
|
|
||||||
# Get number of selected non-empty glyphs
|
# Get number of selected non-empty glyphs
|
||||||
symbolFontSelection = list(symbolFont.selection.byGlyphs)
|
symbolFontSelection = list(symbolFont.selection.byGlyphs)
|
||||||
|
Loading…
Reference in New Issue
Block a user