diff --git a/tools/daca2-report.py b/tools/daca2-report.py
deleted file mode 100644
index 574657bf7..000000000
--- a/tools/daca2-report.py
+++ /dev/null
@@ -1,223 +0,0 @@
-#!/usr/bin/env python
-import os
-import sys
-import re
-import subprocess
-
-def readdate(data):
- if data[:5] == 'DATE ':
- datepos = 0
- else:
- datepos = data.find('\nDATE ')
- if datepos >= 0:
- datepos += 1
-
- if datepos < 0:
- return None
-
- datestr = ''
- datepos += 5
- while True:
- if datepos >= len(data):
- return None
- d = data[datepos]
- if '0' <= d <= '9':
- datestr += d
- elif d == '\n' or d == '\r':
- if len(datestr) == 8:
- return datestr[:4] + '-' + datestr[4:6] + '-' + datestr[6:]
- return None
- elif d != ' ' and d != '-':
- return None
- datepos += 1
-
-
-def summaryHtml(style, font, severity, categories, totalNumber):
- font1 = ''
- font2 = ''
- if font:
- font1 = font
- font2 = ''
- ret = '
'
- ret = ret + '
' + font1 + severity + font2 + '
'
- ret = ret + '
' + font1 + str(categories) + font2 + '
'
- ret = ret + '
' + font1 + str(totalNumber) + font2 + '
'
- ret = ret + '
\n'
- return ret
-
-def diffResults(reportpath):
- diff = ''
- count_negatives = 0
- count_positives = 0
-
- f = open(reportpath + 'diff.txt', 'wt')
-
- for lib in ['', 'lib']:
- for a in "0123456789abcdefghijklmnopqrstuvwxyz":
- baseFileName = daca2folder + lib + a + '/results-1.84.txt'
- headFileName = daca2folder + lib + a + '/results-head.txt'
- if not os.path.isfile(baseFileName):
- continue
- if not os.path.isfile(headFileName):
- continue
-
- print('diffResults:' + lib + a)
-
- diffCmd = ['diff', baseFileName, headFileName]
- p = subprocess.Popen(diffCmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- comm = p.communicate()
-
- for line in comm[0].split('\n'):
- if re.match(r'^> [a-z0-9].+', line):
- f.write('head: ' + line[2:] + '\n')
- count_positives += 1
- elif re.match(r'^< [a-z0-9].+', line):
- f.write('1.84: ' + line[2:] + '\n')
- count_negatives += 1
-
- return count_negatives, count_positives
-
-daca2folder = os.path.expanduser('~/daca2/')
-path = ''
-for arg in sys.argv[1:]:
- if arg.startswith('--daca2='):
- daca2folder = arg[8:]
- if daca2folder[-1] != '/':
- daca2folder += '/'
- else:
- path = arg
- if path[-1] != '/':
- path += '/'
-
-count_negatives, count_positives = diffResults(path)
-
-mainpage = open(path + 'daca2.html', 'wt')
-mainpage.write('\n')
-mainpage.write('\n')
-mainpage.write('\n')
-mainpage.write('\n')
-mainpage.write('DACA2\n')
-mainpage.write('\n')
-mainpage.write('\n')
-mainpage.write('\n')
-mainpage.write('\n')
-mainpage.write('
DACA2
\n')
-mainpage.write('
Results when running latest (git head) Cppcheck on Debian.
\n')
-mainpage.write('
For performance reasons the analysis is limited. Files larger than 1mb are skipped. ' +
- 'If analysis of a file takes more than 10 minutes it may be stopped.