Archived
1
0
Fork 0

inotify-map: remove lookup_by_path function.

callers can write 'inotify_get_path(inotify_get_wd(path))' anyway.
This commit is contained in:
Henrik Hautakoski 2011-02-18 10:53:02 +01:00
parent e0302e8ac4
commit 35008fa605
2 changed files with 0 additions and 10 deletions

View file

@ -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)

View file

@ -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 */