Skip to content

Commit

Permalink
removed unneeded var
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Haas committed Aug 7, 2018
1 parent d83d930 commit edba9eb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions font-patcher
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class font_patcher:
self.fontlinuxExactEncodingPosition = True
self.patch_set = None # class 'list'
self.font_dim = None # class 'dict'
self.symbols_complete = None # class 'list' of bools
self.onlybitmaps = 0
self.extension = ""
self.setup_arguments()
Expand Down Expand Up @@ -175,9 +174,7 @@ class font_patcher:
self.args.material = True
self.args.weather = True

if self.args.complete:
self.symbols_complete = True
else:
if not self.args.complete:
# add the list of arguments for each symbol font to the list self.sym_font_args
for action in sym_font_group._group_actions:
self.sym_font_args.append(action.__dict__['option_strings'])
Expand All @@ -191,12 +188,12 @@ class font_patcher:
found = True
if found is not True:
font_complete = False
self.symbols_complete = font_complete
self.args.complete = font_complete

# this one also works but it needs to be updated every time a font is added
#
# if you add a new font, put it in here too, as the others are
# self.symbols_complete = all([
# self.args.complete = all([
# self.args.fontawesome is True,
# self.args.fontawesomeextension is True,
# self.args.fontlinux is True,
Expand All @@ -216,7 +213,7 @@ class font_patcher:
additionalFontNameSuffix = " " + projectNameAbbreviation
else:
additionalFontNameSuffix = verboseAdditionalFontNameSuffix
if not self.symbols_complete:
if not self.args.complete:
# NOTE not all symbol fonts have appended their suffix here
if self.args.fontawesome:
additionalFontNameSuffix += " A"
Expand Down

0 comments on commit edba9eb

Please sign in to comment.