Author: Med Ismail Bennani
Date: 2023-08-18T20:50:39+01:00
New Revision: 3054a0c4bc50856156f26b528895ddcfba4210fa

URL: 
https://github.com/llvm/llvm-project/commit/3054a0c4bc50856156f26b528895ddcfba4210fa
DIFF: 
https://github.com/llvm/llvm-project/commit/3054a0c4bc50856156f26b528895ddcfba4210fa.diff

LOG: [lldb/crashlog] Remove dead code (NFC)

This patch cleans up the crashlog.py script and removes dead code.

Signed-off-by: Med Ismail Bennani <ism...@bennani.ma>

Added: 
    

Modified: 
    lldb/examples/python/crashlog.py

Removed: 
    


################################################################################
diff  --git a/lldb/examples/python/crashlog.py 
b/lldb/examples/python/crashlog.py
index 216eb7c56690cc..10e89b10fbb1df 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -1228,11 +1228,6 @@ def parse_instructions(self, line):
         pass
 
 
-def usage():
-    print("Usage: lldb-symbolicate.py [-n name] executable-image")
-    sys.exit(0)
-
-
 def save_crashlog(debugger, command, exe_ctx, result, dict):
     usage = "save_crashlog [options] <output-path>"
     description = """Export the state of current target into a crashlog file"""


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to