From ba7d51503e36bc326b402e8ee803b602a08437ec Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Sun, 12 Dec 2021 10:41:19 -0800 Subject: [PATCH] deroff.py: unneccessarry pass, unreachable code --- share/tools/deroff.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/share/tools/deroff.py b/share/tools/deroff.py index 40b4ba1a3..789c4524e 100755 --- a/share/tools/deroff.py +++ b/share/tools/deroff.py @@ -699,7 +699,6 @@ class Deroffer: return False def macro_i_ir(self): - pass return False def macro_Nm(self): @@ -1144,12 +1143,9 @@ if __name__ == "__main__": import gzip paths = sys.argv[1:] - if True: - deroff_files(paths) - else: - import cProfile, profile, pstats - - profile.run("deroff_files(paths)", "fooprof") - p = pstats.Stats("fooprof") - p.sort_stats("time").print_stats(100) - # p.sort_stats('calls').print_callers(.5, 'startswith') + deroff_files(paths) + # import cProfile, profile, pstats + # profile.run("deroff_files(paths)", "fooprof") + # p = pstats.Stats("fooprof") + # p.sort_stats("time").print_stats(100) + # p.sort_stats('calls').print_callers(.5, 'startswith')