Skip to content

Commit

Permalink
misc: Remove unused variables identified by varcheck
Browse files Browse the repository at this point in the history
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 <robert.bradford@intel.com>
  • Loading branch information
rbradford committed Jul 13, 2017
1 parent d48b5b5 commit 58a835e
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions qmp_test.go
Expand Up @@ -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{}
Expand Down

0 comments on commit 58a835e

Please sign in to comment.