deroff.py: unneccessarry pass, unreachable code

This commit is contained in:
Aaron Gyes 2021-12-12 10:41:19 -08:00
parent e98fff5883
commit ba7d51503e

View file

@ -699,7 +699,6 @@ class Deroffer:
return False return False
def macro_i_ir(self): def macro_i_ir(self):
pass
return False return False
def macro_Nm(self): def macro_Nm(self):
@ -1144,12 +1143,9 @@ if __name__ == "__main__":
import gzip import gzip
paths = sys.argv[1:] paths = sys.argv[1:]
if True:
deroff_files(paths) deroff_files(paths)
else: # import cProfile, profile, pstats
import cProfile, profile, pstats # profile.run("deroff_files(paths)", "fooprof")
# p = pstats.Stats("fooprof")
profile.run("deroff_files(paths)", "fooprof") # p.sort_stats("time").print_stats(100)
p = pstats.Stats("fooprof")
p.sort_stats("time").print_stats(100)
# p.sort_stats('calls').print_callers(.5, 'startswith') # p.sort_stats('calls').print_callers(.5, 'startswith')