summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/util.c b/src/util.c
index e552fc8..66ac7f3 100644
--- a/src/util.c
+++ b/src/util.c
@@ -548,11 +548,6 @@ lilv_dir_for_each(const char* path,
#else
DIR* dir = opendir(path);
if (dir) {
- long name_max = pathconf(path, _PC_NAME_MAX);
- if (name_max == -1) {
- name_max = 255; // Limit not defined, or error
- }
-
for (struct dirent* entry; (entry = readdir(dir));) {
f(path, entry->d_name, data);
}