Skip to content

Commit dacd898

Browse files
committed
Removed unused functions
1 parent e64b393 commit dacd898

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

include/containerutils.h

-20
Original file line numberDiff line numberDiff line change
@@ -83,26 +83,6 @@ struct container *get_size(off_t size, char *prefix);
8383
* @param prefix: a container prefix
8484
* @returns a pointer to a new container
8585
*/
86-
struct container *get_required_by(alpm_pkg_t *pkg, char *prefix);
87-
88-
/*
89-
* Creates a container that holds an array of strings representing the
90-
* packages optionally required by the given package
91-
*
92-
* @param pkg: an alpm package
93-
* @param prefix: a container prefix
94-
* @returns a pointer to a new container
95-
*/
96-
struct container *get_optional_for(alpm_pkg_t *pkg, char *prefix);
97-
98-
/*
99-
* Creates a container that holds a string representing the name of a
100-
* alpm database
101-
*
102-
* @param db: an alpm database
103-
* @param prefix: a container prefix
104-
* @returns a pointer to a new container
105-
*/
10686
struct container *get_dbname(alpm_db_t *db, char *prefix);
10787

10888
/*

src/containerutils.c

-28
Original file line numberDiff line numberDiff line change
@@ -94,34 +94,6 @@ struct container *get_size(off_t size, char *prefix)
9494
return c;
9595
}
9696

97-
struct container *get_required_by(alpm_pkg_t *pkg, char *prefix)
98-
{
99-
struct container *c = empty_container(prefix);
100-
alpm_list_t *content = alpm_pkg_compute_requiredby(pkg);
101-
alpm_list_t *v;
102-
103-
FOREACH_ALPM_ITEM(v, content)
104-
put_str(c, v->data);
105-
106-
alpm_list_free(content);
107-
108-
return c;
109-
}
110-
111-
struct container *get_optional_for(alpm_pkg_t *pkg, char *prefix)
112-
{
113-
struct container *c = empty_container(prefix);
114-
alpm_list_t *content = alpm_pkg_compute_optionalfor(pkg);
115-
alpm_list_t *v;
116-
117-
FOREACH_ALPM_ITEM(v, content)
118-
put_str(c, v->data);
119-
120-
alpm_list_free(content);
121-
122-
return c;
123-
}
124-
12597
struct container *get_dbname(alpm_db_t *db, char *prefix)
12698
{
12799
return str_to_container((char *)alpm_db_get_name(db), prefix);

0 commit comments

Comments
 (0)