inotify-map: remove lookup_by_path function.
callers can write 'inotify_get_path(inotify_get_wd(path))' anyway.
This commit is contained in:
parent
e0302e8ac4
commit
35008fa605
2 changed files with 0 additions and 10 deletions
|
|
@ -211,14 +211,6 @@ char** inotify_map_get_path(int wd) {
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
char** inotify_map_lookup_by_path(const char *path) {
|
|
||||||
|
|
||||||
int wd = inotify_map_get_wd(path);
|
|
||||||
if (wd)
|
|
||||||
return inotify_map_get_path(wd);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
int inotify_map_isempty() {
|
int inotify_map_isempty() {
|
||||||
|
|
||||||
return rbtree_is_empty(&tree_wd_paths)
|
return rbtree_is_empty(&tree_wd_paths)
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,6 @@ int inotify_map_get_wd(const char *path);
|
||||||
|
|
||||||
char** inotify_map_get_path(int wd);
|
char** inotify_map_get_path(int wd);
|
||||||
|
|
||||||
char** inotify_map_lookup_by_path(const char *path);
|
|
||||||
|
|
||||||
int inotify_map_isempty();
|
int inotify_map_isempty();
|
||||||
|
|
||||||
#endif /* __INOTIFY_MAP_H */
|
#endif /* __INOTIFY_MAP_H */
|
||||||
|
|
|
||||||
Reference in a new issue