This code is never called.
authorSteven Black <redacted>
Sun, 11 Dec 2016 17:21:38 +0000 (12:21 -0500)
committerSteven Black <redacted>
Sun, 11 Dec 2016 17:21:38 +0000 (12:21 -0500)
updateHostsFile.py

index 87363867722a159bbcdeeca50a2e62f9eccb9f7f..a985e59ae2794d8fc4bcb52cd1ccb0865bb5c653 100644 (file)
@@ -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()
git clone https://git.99rst.org/PROJECT