mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 11:44:38 +00:00
misc: Remove some of the code flagged by unused linter
Unfortunately the ununused linter is overzealous with some of the fields that it things are unused as gophercloud relies on their values. So go ahead with the most straightforward removals but do not enable unused on travis builds. ciao-image/datastore/datastore_test.go:28:5⚠️ var metaDsTables is unused (U1000) (unused) ciao-controller/api/api_test.go:39:6⚠️ func myHostname is unused (U1000) (unused) ciao-cli/identity.go:58:3⚠️ field Description is unused (U1000) (unused) ciao-cli/identity.go:59:3⚠️ field DomainID is unused (U1000) (unused) ciao-cli/identity.go:60:3⚠️ field Enabled is unused (U1000) (unused) ciao-cli/identity.go:62:3⚠️ field ParentID is unused (U1000) (unused) ciao-cli/identity.go:63:3⚠️ field Links is unused (U1000) (unused) ciao-cli/identity.go:70:3⚠️ field Self is unused (U1000) (unused) ciao-cli/identity.go:71:3⚠️ field Previous is unused (U1000) (unused) ciao-cli/identity.go:72:3⚠️ field Next is unused (U1000) (unused) ciao-cli/identity.go:207:3⚠️ field Next is unused (U1000) (unused) ciao-cli/identity.go:208:3⚠️ field Previous is unused (U1000) (unused) ciao-cli/identity.go:209:3⚠️ field Self is unused (U1000) (unused) ciao-cli/identity.go:213:3⚠️ field Description is unused (U1000) (unused) ciao-cli/identity.go:214:3⚠️ field DomainID is unused (U1000) (unused) ciao-cli/identity.go:215:3⚠️ field Enabled is unused (U1000) (unused) ciao-cli/identity.go:217:3⚠️ field Links is unused (U1000) (unused) ciao-cli/identity.go:221:3⚠️ field ParentID is unused (U1000) (unused) ciao-cli/main.go:105:6⚠️ type action is unused (U1000) (unused) ciao-cli/volume.go:37:6⚠️ type customVolumeExt is unused (U1000) (unused) ciao-cli/volume.go:39:2⚠️ field customVolumeExt is unused (U1000) (unused) networking/ciao-cnci-agent/network.go:98:8⚠️ const maxKey is unused (U1000) (unused) networking/libsnnet/tests/parallel/parallel_test.go:371:6⚠️ func dockerNetList is unused (U1000) (unused) networking/libsnnet/tests/parallel/parallel_test.go:379:6⚠️ func dockerNetInfo is unused (U1000) (unused) openstack/compute/api.go:308:2⚠️ const limit is unused (U1000) (unused) openstack/compute/api.go:309:2⚠️ const marker is unused (U1000) (unused) openstack/compute/api.go:312:6⚠️ type pager is unused (U1000) (unused) openstack/compute/api.go:313:2⚠️ func pager.filter is unused (U1000) (unused) openstack/compute/api.go:314:2⚠️ func pager.nextPage is unused (U1000) (unused) openstack/compute/api_test.go:34:6⚠️ func myHostname is unused (U1000) (unused) ciao-controller/api.go:72:2⚠️ const statusFilter is unused (U1000) (unused) ciao-controller/api.go:75:6⚠️ type pager is unused (U1000) (unused) ciao-controller/api.go:76:2⚠️ func pager.filter is unused (U1000) (unused) ciao-controller/api.go:77:2⚠️ func pager.nextPage is unused (U1000) (unused) ciao-controller/api.go:136:25⚠️ func (*nodePager).filter is unused (U1000) (unused) ciao-controller/api.go:198:31⚠️ func (*nodeServerPager).filter is unused (U1000) (unused) ciao-controller/controller_test.go:107:6⚠️ func addTestTenantNoCNCI is unused (U1000) (unused) ciao-controller/controller_test.go:1104:6⚠️ func startTestWorkload is unused (U1000) (unused) ciao-controller/controller_test.go:1123:6⚠️ func testStartWorkloadLaunchCNCI is unused (U1000) (unused) ciao-controller/openstack_compute.go:552:5⚠️ field Links is unused (U1000) (unused) qemu/qmp_test.go:493:3⚠️ const seconds is unused (U1000) (unused) qemu/qmp_test.go:494:3⚠️ const microsecondsEv1 is unused (U1000) (unused) qemu/qmp_test.go:495:3⚠️ const device is unused (U1000) (unused) qemu/qmp_test.go:496:3⚠️ const path is unused (U1000) (unused) templateutils/example_test.go:53:3⚠️ field hidden is unused (U1000) (unused) Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
a1600dc15b
commit
d4f77103be
@ -489,13 +489,6 @@ func TestQMPDeviceDel(t *testing.T) {
|
||||
// The device_del command should timeout after 1 second and the QMP loop
|
||||
// should exit gracefully.
|
||||
func TestQMPDeviceDelTimeout(t *testing.T) {
|
||||
const (
|
||||
seconds = 1352167040730
|
||||
microsecondsEv1 = 123456
|
||||
device = "device_" + testutil.VolumeUUID
|
||||
path = "/dev/rbd0"
|
||||
)
|
||||
|
||||
var wg sync.WaitGroup
|
||||
connectedCh := make(chan *QMPVersion)
|
||||
disconnectedCh := make(chan struct{})
|
||||
|
Loading…
Reference in New Issue
Block a user