[epiphany] Remove check for negative unsigned ints
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Remove check for negative unsigned ints
- Date: Mon, 21 May 2012 10:51:38 +0000 (UTC)
commit de2c7c273388467c91aec7c338cff287e3819ae1
Author: LubomÃr SedlÃÅ <lubomir sedlar gmail com>
Date: Mon May 14 15:04:06 2012 +0200
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
lib/ephy-node.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/lib/ephy-node.c b/lib/ephy-node.c
index 620b775..3f7d584 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]