Delete unnecessary function

This commit is contained in:
geonu 2015-10-02 21:05:55 +09:00
parent 0d006a3521
commit 186f41edcb

View file

@ -38,12 +38,6 @@ class OrderedSet(list):
self.append(value)
def is_flag(val):
"""Guess if the value could be an on/off toggle"""
val = str(val)
return val.upper() in ('1', '0', 'F', 'T', 'TRUE', 'FALSE', 'ON', 'OFF')
def is_windows():
"""Determine if the system is Windows."""
return os.name == 'nt'
@ -63,11 +57,6 @@ def force_disable_jobs(styleguide):
return is_windows() or is_using_stdin(styleguide.paths)
def flag_on(val):
"""Return true if flag is on"""
return str(val).upper() in ('1', 'T', 'TRUE', 'ON')
def option_normalizer(value):
if str(value).upper() in ('1', 'T', 'TRUE', 'ON'):
value = True