summaryrefslogtreecommitdiffstats
path: root/__root__
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-03-16 22:25:58 +0100
committerJan Pokorný <jpokorny@redhat.com>2015-03-16 22:40:58 +0100
commitc590dcdff1c6f24efe9c0aaf81b943f9edffa2f7 (patch)
tree7aeadf0343884d89ab9f13644ad39554f928c094 /__root__
parent6d009e32a59fe09f81e31e838f65869557ea72d6 (diff)
downloadclufter-c590dcdff1c6f24efe9c0aaf81b943f9edffa2f7.tar.gz
clufter-c590dcdff1c6f24efe9c0aaf81b943f9edffa2f7.tar.xz
clufter-c590dcdff1c6f24efe9c0aaf81b943f9edffa2f7.zip
ccs-flatten/res{list.h,rules.c}: drop unused function
(code marked suspicious by static analysis) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '__root__')
-rw-r--r--__root__/ccs-flatten/reslist.h3
-rw-r--r--__root__/ccs-flatten/resrules.c23
2 files changed, 2 insertions, 24 deletions
diff --git a/__root__/ccs-flatten/reslist.h b/__root__/ccs-flatten/reslist.h
index bb531a1..22fd536 100644
--- a/__root__/ccs-flatten/reslist.h
+++ b/__root__/ccs-flatten/reslist.h
@@ -1,5 +1,5 @@
/*
- Copyright Red Hat, Inc. 2004
+ Copyright 2015 Red Hat, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -183,7 +183,6 @@ void deconstruct_domains(fod_t ** domains);
Handy functions
*/
resource_t *find_resource_by_ref(resource_t ** reslist, char *type, char *ref);
-resource_rule_t *find_rule_by_type(resource_rule_t ** rulelist, char *type);
void res_build_name(char *, size_t, resource_t *);
/*
diff --git a/__root__/ccs-flatten/resrules.c b/__root__/ccs-flatten/resrules.c
index 2b749ff..cb7bd02 100644
--- a/__root__/ccs-flatten/resrules.c
+++ b/__root__/ccs-flatten/resrules.c
@@ -1,5 +1,5 @@
/*
- Copyright 2014 Red Hat, Inc.
+ Copyright 2015 Red Hat, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -1028,24 +1028,3 @@ load_resource_rules(const char *rpath, resource_rule_t ** rules,
return 0;
}
-
-/**
- Find a resource rule given its type.
-
- @param rulelist Rule list to search
- @param type Rule type identifier
- @return Resource rule or NULL if not found.
- */
-resource_rule_t *
-find_rule_by_type(resource_rule_t ** rulelist, char *type)
-{
- resource_rule_t *curr = NULL;
-
- list_do(rulelist, curr) {
- if (!strcmp(curr->rr_type, type))
- return curr;
- }
- while (!list_done(rulelist, curr)) ;
-
- return NULL;
-}