From 0eed96c22d8c8c06ce4abad18f8366523ceffbca Mon Sep 17 00:00:00 2001 From: "David A. Wheeler" Date: Sun, 30 Sep 2018 21:08:48 -0400 Subject: [PATCH] Remove unused global variables This fixes bug report #13, "Unused global variables" from philipp. Thanks! Signed-off-by: David A. Wheeler --- flawfinder | 7 ------- 1 file changed, 7 deletions(-) diff --git a/flawfinder b/flawfinder index 641b96f..e0704e1 100755 --- a/flawfinder +++ b/flawfinder @@ -116,9 +116,6 @@ sumlines = 0 # Number of lines (total) examined. sloc = 0 # Physical SLOC starttime = time.time() # Used to determine analyzed lines/second. -line_beginning = re.compile(r'(?m)^') -blank_line = re.compile(r'(?m)^\s+$') - # Send warning message. This is written this way to work on # Python version 2.5 through Python 3. @@ -226,10 +223,6 @@ def gnu_diff_get_filename(sLine): return None -git_splitter = ' b/' -len_git_splitter = len(git_splitter) - - def git_diff_get_filename(sLine): return diff_git_filename.match(sLine)