summaryrefslogtreecommitdiffstats
path: root/__root__/ccs-flatten
diff options
context:
space:
mode:
Diffstat (limited to '__root__/ccs-flatten')
-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;
-}