Commit 84efc74c authored by Ikram Haq's avatar Ikram Haq
Browse files

Remove Unnecessary code

parent 2f421757
Loading
Loading
Loading
Loading
+0 −39
Original line number Diff line number Diff line
@@ -1805,45 +1805,6 @@ func buildResourceURL_(baseURL, basePath, endpoint string, parameters []string)
	return url
}

// func apGet(w http.ResponseWriter, r *http.Request) {
// 	w.Header().Set("Content-Type", "application/json; charset=UTF-8")
// 	var userData ApUserData
// 	vars := mux.Vars(r)

// 	// Get user list from DB
// 	var response InlineAccessPointList
// 	var apList AccessPointList
// 	apList.ZoneId = vars["zoneId"]
// 	apList.ResourceURL = hostUrl.String() + basePath + "queries/zones/" + vars["zoneId"] + "/accessPoints"
// 	response.AccessPointList = &apList
// 	userData.apList = &apList

// 	//make sure the zone exists first
// 	jsonZoneInfo, _ := rc.JSONGetEntry(baseKey+typeZone+":"+vars["zoneId"], ".")
// 	if jsonZoneInfo == "" {
// 		w.WriteHeader(http.StatusNotFound)
// 		return
// 	}

// 	keyName := baseKey + typeZone + ":" + vars["zoneId"] + ":*"
// 	err := rc.ForEachJSONEntry(keyName, populateApList, &userData)
// 	if err != nil {
// 		log.Error(err.Error())
// 		errHandlerProblemDetails(w, err.Error(), http.StatusInternalServerError)
// 		return
// 	}

// 	// Send response
// 	jsonResponse, err := json.Marshal(response)
// 	if err != nil {
// 		log.Error(err.Error())
// 		errHandlerProblemDetails(w, err.Error(), http.StatusInternalServerError)
// 		return
// 	}
// 	w.WriteHeader(http.StatusOK)
// 	fmt.Fprint(w, string(jsonResponse))
// }

func apByIdGet(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "application/json; charset=UTF-8")
	vars := mux.Vars(r)