From 61d6d476373a4b55dedf41689f8ba032b81ade9e Mon Sep 17 00:00:00 2001 From: Mael GRAMAIN Date: Sun, 13 Dec 2020 21:06:29 -0400 Subject: [PATCH] Unused code removed --- utils/queries.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/utils/queries.go b/utils/queries.go index 1688d56..5b0a106 100644 --- a/utils/queries.go +++ b/utils/queries.go @@ -8,20 +8,6 @@ import ( "github.com/sirupsen/logrus" ) -func getDomain(fqdn string) *Domain { - domain := new(Domain) - err := DB.QueryRow( - "SELECT id, friendly_name, fqdn, owner_id, last_edit FROM lighthouse.domains WHERE `fqdn` = ?;", fqdn).Scan( - &domain.ID, - &domain.FriendlyName, - &domain.Fqdn, - &domain.OwnerId, - &domain.LastEdit, - ) - print(err) - return domain -} - func GetRecord(entry Record) Record { //Check for strict record in Redis cache redisKey := entry.Fqdn + "--" + fmt.Sprint(entry.Qtype)