Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot Resolver
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
124
Issues
124
List
Boards
Labels
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
Knot Resolver
Commits
cb4200a1
Commit
cb4200a1
authored
Jul 07, 2017
by
Vladimír Čunát
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
utils: remove unused kr_rrarray_add(...)
Noticed after removal of its lua binding in commit
3be76db7
.
parent
bc3d2159
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
17 deletions
+0
-17
lib/utils.c
lib/utils.c
+0
-14
lib/utils.h
lib/utils.h
+0
-3
No files found.
lib/utils.c
View file @
cb4200a1
...
...
@@ -454,20 +454,6 @@ int kr_rrmap_add(map_t *stash, const knot_rrset_t *rr, uint8_t rank, knot_mm_t *
return
knot_rdataset_merge
(
&
stashed
->
rrs
,
&
rr
->
rrs
,
pool
);
}
int
kr_rrarray_add
(
rr_array_t
*
array
,
const
knot_rrset_t
*
rr
,
knot_mm_t
*
pool
)
{
int
ret
=
array_reserve_mm
(
*
array
,
array
->
len
+
1
,
kr_memreserve
,
pool
);
if
(
ret
!=
0
)
{
return
kr_error
(
ENOMEM
);
}
knot_rrset_t
*
copy
=
knot_rrset_copy
(
rr
,
pool
);
if
(
!
copy
)
{
return
kr_error
(
ENOMEM
);
}
array_push
(
*
array
,
copy
);
return
kr_ok
();
}
/** Return whether two RRsets match, i.e. would form the same set; see ranked_rr_array_t */
static
inline
bool
rrsets_match
(
const
knot_rrset_t
*
rr1
,
const
knot_rrset_t
*
rr2
)
{
...
...
lib/utils.h
View file @
cb4200a1
...
...
@@ -238,9 +238,6 @@ int kr_rrkey(char *key, const knot_dname_t *owner, uint16_t type, uint8_t rank);
*/
int
kr_rrmap_add
(
map_t
*
stash
,
const
knot_rrset_t
*
rr
,
uint8_t
rank
,
knot_mm_t
*
pool
);
/** @internal Add RRSet copy to RR array. */
int
kr_rrarray_add
(
rr_array_t
*
array
,
const
knot_rrset_t
*
rr
,
knot_mm_t
*
pool
);
/** @internal Add RRSet copy to ranked RR array. */
KR_EXPORT
int
kr_ranked_rrarray_add
(
ranked_rr_array_t
*
array
,
const
knot_rrset_t
*
rr
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment