revset: drop unreachable code
authorBryan O'Sullivan <bryano@fb.com>
Fri, 01 Jun 2012 15:50:22 -0700
changeset 16859 eeb464ed7275
parent 16858 fdf99e0f60f3
child 16860 e1aa1ed30030
revset: drop unreachable code
mercurial/revset.py
--- a/mercurial/revset.py	Fri Jun 01 15:50:22 2012 -0700
+++ b/mercurial/revset.py	Fri Jun 01 15:50:22 2012 -0700
@@ -1348,7 +1348,7 @@
                          '-' + getstring(x[1], _("can't negate that"))), small)
     elif op in 'string symbol negate':
         return smallbonus, x # single revisions are small
-    elif op == 'and' or op == 'dagrange':
+    elif op == 'and':
         wa, ta = optimize(x[1], True)
         wb, tb = optimize(x[2], True)
         w = min(wa, wb)