You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2018/09/13 19:54:45 UTC

[trafficcontrol] 03/03: Remove TO unused func

This is an automated email from the ASF dual-hosted git repository.

dewrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit 5197a2da7e323976d5404ce135ff8c42cbed64ef
Author: Robert Butts <ro...@apache.org>
AuthorDate: Thu Sep 13 13:44:23 2018 -0600

    Remove TO unused func
---
 traffic_ops/traffic_ops_golang/cachegroup/dspost.go | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/traffic_ops/traffic_ops_golang/cachegroup/dspost.go b/traffic_ops/traffic_ops_golang/cachegroup/dspost.go
index 8ec3dee..5ab3bba 100644
--- a/traffic_ops/traffic_ops_golang/cachegroup/dspost.go
+++ b/traffic_ops/traffic_ops_golang/cachegroup/dspost.go
@@ -276,15 +276,3 @@ WHERE deliveryservice.id = ANY($1)
 	}
 	return tenantIDs, nil
 }
-
-// FinishTx commits the transaction if commit is true when it's called, otherwise it rolls back the transaction. This is designed to be called in a defer.
-func FinishTx(tx *sql.Tx, commit *bool) {
-	if tx == nil {
-		return
-	}
-	if !*commit {
-		tx.Rollback()
-		return
-	}
-	tx.Commit()
-}