commit | db11711f6af331c079dd1a0fec19fdad6c86a18f | [log] [tgz] |
---|---|---|
author | Yuji Yaginuma <yuuji.yaginuma@gmail.com> | Tue Dec 12 11:43:52 2017 +0900 |
committer | Andrew Bonventre <andybons@gmail.com> | Mon Dec 11 21:43:52 2017 -0500 |
tree | c7fadc380029b04862896498e6fdde803edf4dd2 | |
parent | 6aaf7c34af0f4c36a57e0c429bace4d706d8e931 [diff] |
Remove unused `isZero` func (#364) `isZero` unused since 4e7ffd8.
diff --git a/lint.go b/lint.go index e1a5f30..8bb1faa 100644 --- a/lint.go +++ b/lint.go
@@ -1606,11 +1606,6 @@ return ok && isIdent(sel.X, pkg) && isIdent(sel.Sel, name) } -func isZero(expr ast.Expr) bool { - lit, ok := expr.(*ast.BasicLit) - return ok && lit.Kind == token.INT && lit.Value == "0" -} - func isOne(expr ast.Expr) bool { lit, ok := expr.(*ast.BasicLit) return ok && lit.Kind == token.INT && lit.Value == "1"