From df8e83a2b8d5a3f6abed1b737631fca42059d555 Mon Sep 17 00:00:00 2001 From: Roland Shoemaker Date: Mon, 10 Aug 2015 15:13:04 -0700 Subject: [PATCH] Trim commented code --- policy/policy-data.go | 44 ------------------------------------------- 1 file changed, 44 deletions(-) diff --git a/policy/policy-data.go b/policy/policy-data.go index f16adfaf9..7bc21c784 100644 --- a/policy/policy-data.go +++ b/policy/policy-data.go @@ -138,47 +138,3 @@ func (padb *PolicyAuthorityDatabaseImpl) CheckRules(host string, requireWhitelis return nil } - -// func (padb *PolicyAuthorityDatabaseImpl) IsBlacklisted(host string) (bool, error) { -// // Wrap in transaction so the blacklist doesn't change under us -// tx, err := padb.dbMap.Begin() -// if err != nil { -// tx.Rollback() -// return false, err -// } -// -// var count int -// _, err = tx.Select( -// &count, -// `SELECT COUNT(*) FROM ruleList WHERE :host LIKE rule AND type = 'blacklist'`, -// map[string]interface{}{"host": host}, -// ) -// if err != nil { -// return false, err -// } -// -// err = tx.Commit() -// return count > 0, err -// } -// -// func (padb *PolicyAuthorityDatabaseImpl) IsWhitelisted(host string) (bool, error) { -// // Wrap in transaction so the whitelist doesn't change under us -// tx, err := padb.dbMap.Begin() -// if err != nil { -// tx.Rollback() -// return false, err -// } -// -// var count int -// _, err = tx.Select( -// &count, -// `SELECT COUNT(*) FROM ruleList WHERE :host LIKE rule AND type = 'whitelist'`, -// map[string]interface{}{"host": host}, -// ) -// if err != nil { -// return false, err -// } -// -// err = tx.Commit() -// return count > 0, err -// }