Skip to content

Commit fe82f35

Browse files
authored
parser: Remove dead code (#343)
1 parent a9502cd commit fe82f35

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

internal/dinosql/parser.go

-6
Original file line numberDiff line numberDiff line change
@@ -1065,12 +1065,6 @@ func (p paramSearch) Visit(node nodes.Node) ast.Visitor {
10651065
switch n := node.(type) {
10661066

10671067
case nodes.A_Expr:
1068-
if join(n.Name, "-") == "@" && n.Lexpr == nil {
1069-
param := nodes.ParamRef{Number: 1}
1070-
// TODO: Remove hard-coded slug
1071-
*p.refs = append(*p.refs, paramRef{parent: p.parent, rv: p.rangeVar, name: "slug", ref: param})
1072-
return nil
1073-
}
10741068
p.parent = node
10751069

10761070
case nodes.FuncCall:

0 commit comments

Comments
 (0)