Unused code removed

This commit is contained in:
Mael G. 2020-12-13 21:06:29 -04:00
parent de3bcdd7fc
commit 61d6d47637

View file

@ -8,20 +8,6 @@ import (
"github.com/sirupsen/logrus" "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 { func GetRecord(entry Record) Record {
//Check for strict record in Redis cache //Check for strict record in Redis cache
redisKey := entry.Fqdn + "--" + fmt.Sprint(entry.Qtype) redisKey := entry.Fqdn + "--" + fmt.Sprint(entry.Qtype)