From: Steven Black Date: Sun, 11 Dec 2016 17:21:38 +0000 (-0500) Subject: This code is never called. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=d089583a458102ea8d0b506f28d5424a032f908f;p=stevenblack-hosts.git This code is never called. --- diff --git a/updateHostsFile.py b/updateHostsFile.py index 873638677..a985e59ae 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -276,18 +276,6 @@ def getUpdateURLsFromFile(source): return retURLs # End Update Logic - -def getUpdateURLFromFile(source): - pathToUpdateFile = os.path.join(settings["datapath"], source, settings["sourcedatafilename"]) - if os.path.exists(pathToUpdateFile): - with open(pathToUpdateFile, "r") as updateFile: - updateData = json.load(updateFile) - return [updateData["url"]] - printFailure("Warning: Can't find the update file for source " + source + "\n" + - "Make sure that there's a file at " + pathToUpdateFile) - return None -# End Update Logic - # File Logic def createInitialFile(): mergeFile = tempfile.NamedTemporaryFile()