From 58a835e6a63c35d0ab198099ba59343ddb7e5da5 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 12 Jul 2017 16:36:10 +0100 Subject: [PATCH] misc: Remove unused variables identified by varcheck And add varcheck to the list of linters used on travis runs (with an increased deadline.) ciao-launcher/qemu_test.go:31:5:warning: unused variable or constant imageInfoTestGood (varcheck) ciao-launcher/qemu_test.go:44:5:warning: unused variable or constant imageInfoTestMissingBytes (varcheck) ciao-launcher/qemu_test.go:57:5:warning: unused variable or constant imageInfoTestMissingLine (varcheck) ciao-launcher/qemu_test.go:69:5:warning: unused variable or constant imageInfoTooBig (varcheck) ciao-launcher/qemu_test.go:82:5:warning: unused variable or constant imageInfoBadBytes (varcheck) configuration/configuration_test.go:35:7:warning: unused variable or constant glanceURL (varcheck) ciao-controller/controller_test.go:1918:5:warning: unused variable or constant testClients (varcheck) qemu/qmp_test.go:44:2:warning: unused variable or constant qmpSuccess (varcheck) qemu/qmp_test.go:45:2:warning: unused variable or constant qmpFailure (varcheck) Signed-off-by: Rob Bradford --- qmp_test.go | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/qmp_test.go b/qmp_test.go index 54ec792cd5..51058ec26b 100644 --- a/qmp_test.go +++ b/qmp_test.go @@ -32,17 +32,15 @@ import ( ) const ( - microStr = "50" - minorStr = "6" - majorStr = "2" - micro = 50 - minor = 6 - major = 2 - cap1 = "one" - cap2 = "two" - qmpHello = `{ "QMP": { "version": { "qemu": { "micro": ` + microStr + `, "minor": ` + minorStr + `, "major": ` + majorStr + ` }, "package": ""}, "capabilities": ["` + cap1 + `","` + cap2 + `"]}}` + "\n" - qmpSuccess = `{ "return": {}}` + "\n" - qmpFailure = `{ "error": {}}` + "\n" + microStr = "50" + minorStr = "6" + majorStr = "2" + micro = 50 + minor = 6 + major = 2 + cap1 = "one" + cap2 = "two" + qmpHello = `{ "QMP": { "version": { "qemu": { "micro": ` + microStr + `, "minor": ` + minorStr + `, "major": ` + majorStr + ` }, "package": ""}, "capabilities": ["` + cap1 + `","` + cap2 + `"]}}` + "\n" ) type qmpTestLogger struct{}