mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
deroff.py: unneccessarry pass, unreachable code
This commit is contained in:
parent
e98fff5883
commit
ba7d51503e
1 changed files with 6 additions and 10 deletions
|
@ -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)
|
# import cProfile, profile, pstats
|
||||||
else:
|
# profile.run("deroff_files(paths)", "fooprof")
|
||||||
import cProfile, profile, pstats
|
# p = pstats.Stats("fooprof")
|
||||||
|
# p.sort_stats("time").print_stats(100)
|
||||||
profile.run("deroff_files(paths)", "fooprof")
|
# p.sort_stats('calls').print_callers(.5, 'startswith')
|
||||||
p = pstats.Stats("fooprof")
|
|
||||||
p.sort_stats("time").print_stats(100)
|
|
||||||
# p.sort_stats('calls').print_callers(.5, 'startswith')
|
|
||||||
|
|
Loading…
Reference in a new issue