summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-29 10:19:14 -0500
committerDavid Robillard <d@drobilla.net>2017-12-29 10:44:36 -0500
commit8c13a50d14f01935919bfb774b02d0cbfdd42fd7 (patch)
treefd7005e97cd18b5c334fd823492b81e4392f9984
parent9244ef0b3f4401152b0d6b5368a85495c332c2b2 (diff)
downloadlilv-8c13a50d14f01935919bfb774b02d0cbfdd42fd7.tar.gz
lilv-8c13a50d14f01935919bfb774b02d0cbfdd42fd7.tar.bz2
lilv-8c13a50d14f01935919bfb774b02d0cbfdd42fd7.zip
Remove dead code
-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);
}