From bebe2c63e0ad49199a686de2c17380d83cd7a660 Mon Sep 17 00:00:00 2001 From: akhilac1 Date: Mon, 19 Sep 2022 23:03:28 +0530 Subject: [PATCH] removed dead code Signed-off-by: akhilac1 --- configuration/postgres/postgres.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/configuration/postgres/postgres.go b/configuration/postgres/postgres.go index 439197355..68347714b 100644 --- a/configuration/postgres/postgres.go +++ b/configuration/postgres/postgres.go @@ -374,15 +374,6 @@ func buildQuery(req *configuration.GetRequest, configTable string) (string, []in return query, params, nil } -func QueryRow(ctx context.Context, p *pgxpool.Pool, query string, tbl string) error { - exists := false - err := p.QueryRow(ctx, query, tbl).Scan(&exists) - if err != nil { - return fmt.Errorf("postgres configuration store query error : %s", err) - } - return nil -} - func (p *ConfigurationStore) isSubscriptionActive(req *configuration.SubscribeRequest) (string, bool) { for _, trigger := range req.Metadata { for key2, sub := range p.ActiveSubscriptions {