From b05f2134697cf529800d0fd18cf171a1155ab21f Mon Sep 17 00:00:00 2001
From: "Richard R. McDonald" <rmcd@usgs.gov>
Date: Tue, 24 Sep 2019 14:29:29 -0600
Subject: [PATCH] removed duplicate code

---
 pkg/Gridmet_current.py | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/pkg/Gridmet_current.py b/pkg/Gridmet_current.py
index 86aa9c1..c582f4e 100644
--- a/pkg/Gridmet_current.py
+++ b/pkg/Gridmet_current.py
@@ -14,7 +14,7 @@ def getxml(url):
     return data
 
 
-# tmaxurl =  "http://thredds.northwestknowledge.net:8080/thredds/ncss/grid/agg_met_tmmx_1979_CurrentYear_CONUS.nc/dataset.xml"
+# "http://thredds.northwestknowledge.net:8080/thredds/ncss/grid/agg_met_tmmx_1979_CurrentYear_CONUS.nc/dataset.xml"
 # http://thredds.northwestknowledge.net:8080/thredds/ncss/grid/agg_met_tmmn_1979_CurrentYear_CONUS.nc/dataset.xml
 # http://thredds.northwestknowledge.net:8080/thredds/ncss/grid/agg_met_pr_1979_CurrentYear_CONUS.nc/dataset.xml
 # http://thredds.northwestknowledge.net:8080/thredds/ncss/grid/agg_met_rmin_1979_CurrentYear_CONUS.nc/dataset.xml
@@ -38,13 +38,3 @@ def getxml(url):
     if gm_date != yesterday:
         print(f'Gridmet data {data} is not available - process exiting')
         sys.exit(1)
-
-def getxml(url):
-    http = urllib3.PoolManager()
-
-    response = http.request('GET', url)
-    try:
-        data = xmltodict.parse(response.data)
-    except:
-        print("Failed to parse xml from response (%s)" % traceback.format_exc())
-    return data