parsers: remove unreachable and invalid code in index_ancestors
authorMads Kiilerich <madski@unity3d.com>
Mon, 24 Feb 2014 22:42:13 +0100
changeset 20554 24e0661e6c2e
parent 20553 86cefb15e7b5
child 20555 4add43865a9b
parsers: remove unreachable and invalid code in index_ancestors The function normally returns a list. Returning a single element instead of a list with one element would be weird.
mercurial/parsers.c
--- a/mercurial/parsers.c	Thu Feb 13 14:27:12 2014 -0800
+++ b/mercurial/parsers.c	Mon Feb 24 22:42:13 2014 +0100
@@ -1529,10 +1529,6 @@
 		ret = gca;
 		Py_INCREF(gca);
 	}
-	else if (PyList_GET_SIZE(gca) == 1) {
-		ret = PyList_GET_ITEM(gca, 0);
-		Py_INCREF(ret);
-	}
 	else ret = find_deepest(self, gca);
 
 done: