{"action":"created","issue":{"url":"https://api.github.com/repos/dominikh/go-unused/issues/7","repository_url":"https://api.github.com/repos/dominikh/go-unused","labels_url":"https://api.github.com/repos/dominikh/go-unused/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/dominikh/go-unused/issues/7/comments","events_url":"https://api.github.com/repos/dominikh/go-unused/issues/7/events","html_url":"https://github.com/dominikh/go-unused/issues/7","id":140621013,"number":7,"title":"unused reports exponentialbackoff.delay is unused","user":{"login":"davecheney","id":7171,"avatar_url":"https://avatars.githubusercontent.com/u/7171?v=3","gravatar_id":"","url":"https://api.github.com/users/davecheney","html_url":"https://github.com/davecheney","followers_url":"https://api.github.com/users/davecheney/followers","following_url":"https://api.github.com/users/davecheney/following{/other_user}","gists_url":"https://api.github.com/users/davecheney/gists{/gist_id}","starred_url":"https://api.github.com/users/davecheney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecheney/subscriptions","organizations_url":"https://api.github.com/users/davecheney/orgs","repos_url":"https://api.github.com/users/davecheney/repos","events_url":"https://api.github.com/users/davecheney/events{/privacy}","received_events_url":"https://api.github.com/users/davecheney/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dominikh/go-unused/labels/false-positive","name":"false-positive","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-14T09:32:07Z","updated_at":"2016-03-14T20:29:25Z","closed_at":null,"body":"Sorry that there isn't a shorter repro, the example comes from the juju codebase\r\n\r\n     go get github.com/juju/juju/worker/storageprovisioner\r\n\r\n     % unused . | grep schedule \r\n     /home/dfc/src/github.com/juju/juju/worker/storageprovisioner/schedule.go:55:30: delay is unused\r\n\r\nHowever it is not, the type implements the storageOp interface, so delay cannot be removed."},"comment":{"url":"https://api.github.com/repos/dominikh/go-unused/issues/comments/196508520","html_url":"https://github.com/dominikh/go-unused/issues/7#issuecomment-196508520","issue_url":"https://api.github.com/repos/dominikh/go-unused/issues/7","id":196508520,"user":{"login":"davecheney","id":7171,"avatar_url":"https://avatars.githubusercontent.com/u/7171?v=3","gravatar_id":"","url":"https://api.github.com/users/davecheney","html_url":"https://github.com/davecheney","followers_url":"https://api.github.com/users/davecheney/followers","following_url":"https://api.github.com/users/davecheney/following{/other_user}","gists_url":"https://api.github.com/users/davecheney/gists{/gist_id}","starred_url":"https://api.github.com/users/davecheney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecheney/subscriptions","organizations_url":"https://api.github.com/users/davecheney/orgs","repos_url":"https://api.github.com/users/davecheney/repos","events_url":"https://api.github.com/users/davecheney/events{/privacy}","received_events_url":"https://api.github.com/users/davecheney/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T20:29:25Z","updated_at":"2016-03-14T20:29:25Z","body":"Yes, it turns out it is embedded in another type to complete the interface.\n\nOn Tue, Mar 15, 2016 at 1:12 AM, Dominik Honnef <notifications@github.com>\nwrote:\n\n> I see the issue. exponentialBackoff does not implement scheduleOp,\n> because it's missing the key method. I assume exponentialBackoff is meant\n> to be embedded in another type that does provide a key method? Yeah, we\n> don't currently consider that. I'll add a check for this sort of thing.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/dominikh/go-unused/issues/7#issuecomment-196324409>.\n>\n"}}