projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various: Remove argument validation after profiling.
[collection4.git]
/
src
/
graph_ident.c
diff --git
a/src/graph_ident.c
b/src/graph_ident.c
index
d1b1b05
..
7dda849
100644
(file)
--- a/
src/graph_ident.c
+++ b/
src/graph_ident.c
@@
-94,8
+94,10
@@
static char *part_copy_with_selector (const char *selector, /* {{{ */
static _Bool part_matches (const char *selector, /* {{{ */
const char *part)
{
static _Bool part_matches (const char *selector, /* {{{ */
const char *part)
{
+#if C4_DEBUG
if ((selector == NULL) && (part == NULL))
return (1);
if ((selector == NULL) && (part == NULL))
return (1);
+#endif
if (selector == NULL) /* && (part != NULL) */
return (0);
if (selector == NULL) /* && (part != NULL) */
return (0);
@@
-401,8
+403,10
@@
int ident_compare (const graph_ident_t *i0, /* {{{ */
_Bool ident_matches (const graph_ident_t *selector, /* {{{ */
const graph_ident_t *ident)
{
_Bool ident_matches (const graph_ident_t *selector, /* {{{ */
const graph_ident_t *ident)
{
+#if C4_DEBUG
if ((selector == NULL) || (ident == NULL))
return (0);
if ((selector == NULL) || (ident == NULL))
return (0);
+#endif
if (!part_matches (selector->host, ident->host))
return (0);
if (!part_matches (selector->host, ident->host))
return (0);