aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Savoye <rob@senecass.com>2020-05-21 10:48:09 -0600
committerRob Savoye <rob@senecass.com>2020-05-21 10:48:09 -0600
commit3edcc0da5731b8c1251e0313a7d8f1073601b011 (patch)
tree8151496253fdf5dea154f24d59b6c73f6fa92b67
parent32eac7d7bfb234bac84b1928d024768fb567715d (diff)
downloaddejagnu-3edcc0da5731b8c1251e0313a7d8f1073601b011.zip
dejagnu-3edcc0da5731b8c1251e0313a7d8f1073601b011.tar.gz
dejagnu-3edcc0da5731b8c1251e0313a7d8f1073601b011.tar.bz2
Remove unused code
-rw-r--r--contrib/database/djstats.py23
1 files changed, 1 insertions, 22 deletions
diff --git a/contrib/database/djstats.py b/contrib/database/djstats.py
index 9745a6e..821f69c 100644
--- a/contrib/database/djstats.py
+++ b/contrib/database/djstats.py
@@ -11,13 +11,8 @@
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
-import os
-import sys
-import getopt
-import pdb
-import re
+# import pdb
import psycopg2
-from datetime import datetime
from sys import argv
@@ -114,22 +109,6 @@ class DjStats(object):
else:
self.tstats['UNSUPPORTED'] = int(tmp[0])
- # # Get some data from the manifest, all front ends share the same branch
- # query = "SELECT branch,filespec FROM manifest WHERE testrun=%r AND tool='gcc'" % (testrun)
- # try:
- # self.post.execute(query)
- # except Exception as e:
- # if e.pgcode != None:
- # print("ERROR: Query failed to fetch! %r" % e.pgerror)
- # quit()
- # tmp = self.post.fetchone()
- # if tmp:
- # self.branch = tmp[0]
- # self.filespec = tmp[1]
- # else:
- # self.branch = None
- # self.filespec = None
-
def dump(self):
if self.tstats['PASS'] > 0 or self.tstats['FAIL'] > 0:
print("Statistics for Test Run for %s: #%d" % (self.tool, self.testrun))