From 0acded864e423e7a0b23096c26bac7a832130d8c Mon Sep 17 00:00:00 2001 From: Guillaume Belanger Date: Wed, 3 Jan 2024 17:36:38 -0500 Subject: [PATCH] chore: Adds unused lint check --- .golangci.yml | 2 +- producer/smpolicy.go | 2 -- service/init.go | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 9fd33f8..6a00fd0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -224,7 +224,7 @@ linters: # - govet # - errcheck # - staticcheck - # - unused + - unused # - gosimple # - ineffassign - typecheck diff --git a/producer/smpolicy.go b/producer/smpolicy.go index 9cea685..34a0f67 100644 --- a/producer/smpolicy.go +++ b/producer/smpolicy.go @@ -25,8 +25,6 @@ import ( "github.com/omec-project/pcf/util" ) -const flowRuleDataColl = "policyData.ues.flowRule" - // SmPoliciesPost - func HandleCreateSmPolicyRequest(request *http_wrapper.Request) *http_wrapper.Response { // step 1: log diff --git a/service/init.go b/service/init.go index 066c8ac..5af7847 100644 --- a/service/init.go +++ b/service/init.go @@ -53,8 +53,7 @@ type PCF struct{} type ( // Config information. Config struct { - pcfcfg string - heartBeatTimer string + pcfcfg string } )