Browse Source

Merge pull request #1445 from LadyMozzarella/remove-latest-json-file

Toolset: Remove legacy code
Hamilton Turner 10 years ago
parent
commit
e757a2034e
2 changed files with 1 additions and 21 deletions
  1. 1 21
      toolset/benchmark/benchmarker.py
  2. 0 0
      toolset/benchmark/latest.json

+ 1 - 21
toolset/benchmark/benchmarker.py

@@ -632,7 +632,7 @@ class Benchmarker:
         time.sleep(5)
 
         ##########################################################
-        # Save results thus far into toolset/benchmark/latest.json
+        # Save results thus far into the latest results directory
         ##########################################################
 
         out.write(header("Saving results through %s" % test.name))
@@ -945,26 +945,6 @@ class Benchmarker:
       self.timestamp = self.parse
     else:
       self.timestamp = time.strftime("%Y%m%d%H%M%S", time.localtime())
-    
-    # Load the latest data
-    #self.latest = None
-    #try:
-    #  with open('toolset/benchmark/latest.json', 'r') as f:
-    #    # Load json file into config object
-    #    self.latest = json.load(f)
-    #    logging.info("toolset/benchmark/latest.json loaded to self.latest")
-    #    logging.debug("contents of latest.json: " + str(json.dumps(self.latest)))
-    #except IOError:
-    #  logging.warn("IOError on attempting to read toolset/benchmark/latest.json")
-    #
-    #self.results = None
-    #try: 
-    #  if self.latest != None and self.name in self.latest.keys():
-    #    with open(os.path.join(self.result_directory, str(self.latest[self.name]), 'results.json'), 'r') as f:
-    #      # Load json file into config object
-    #      self.results = json.load(f)
-    #except IOError:
-    #  pass
 
     self.results = None
     try:

File diff suppressed because it is too large
+ 0 - 0
toolset/benchmark/latest.json


Some files were not shown because too many files changed in this diff