aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomír Sedlář <lubomir.sedlar@gmail.com>2012-05-14 21:04:06 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2012-05-21 17:51:04 +0800
commitde2c7c273388467c91aec7c338cff287e3819ae1 (patch)
treeef20a937a51c90c3540b4cc6c48ad7b5c0918169
parent9497d29693af5c553d7793729e705ebe61248f93 (diff)
downloadgsoc2013-epiphany-de2c7c273388467c91aec7c338cff287e3819ae1.tar
gsoc2013-epiphany-de2c7c273388467c91aec7c338cff287e3819ae1.tar.gz
gsoc2013-epiphany-de2c7c273388467c91aec7c338cff287e3819ae1.tar.bz2
gsoc2013-epiphany-de2c7c273388467c91aec7c338cff287e3819ae1.tar.lz
gsoc2013-epiphany-de2c7c273388467c91aec7c338cff287e3819ae1.tar.xz
gsoc2013-epiphany-de2c7c273388467c91aec7c338cff287e3819ae1.tar.zst
gsoc2013-epiphany-de2c7c273388467c91aec7c338cff287e3819ae1.zip
Remove check for negative unsigned ints
Unsigned integer can not be negative, therefore it is redundant to check whether it is greater than or equal to zero. https://bugzilla.gnome.org/show_bug.cgi?id=675888
-rw-r--r--lib/ephy-node.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/ephy-node.c b/lib/ephy-node.c
index 620b775c0..3f7d58403 100644
--- a/lib/ephy-node.c
+++ b/lib/ephy-node.c
@@ -781,7 +781,6 @@ ephy_node_get_property_node (EphyNode *node,
EphyNode *retval;
g_return_val_if_fail (EPHY_IS_NODE (node), NULL);
- g_return_val_if_fail (property_id >= 0, NULL);
if (property_id >= node->properties->len) {
return NULL;
@@ -1268,7 +1267,6 @@ ephy_node_get_nth_child (EphyNode *node,
EphyNode *ret;
g_return_val_if_fail (EPHY_IS_NODE (node), NULL);
- g_return_val_if_fail (n >= 0, NULL);
if (n < node->children->len) {
ret = g_ptr_array_index (node->children, n);