diff --git a/common/utils.c b/common/utils.c index 2517bb34..46fe6056 100644 --- a/common/utils.c +++ b/common/utils.c @@ -1830,23 +1830,6 @@ int btrfs_string_check_for_mixed_profiles_by_fd(int fd, char **data_ret, return 1; } -int btrfs_check_for_mixed_profiles_by_path(const char *path) -{ - int fd; - int ret; - DIR *dirstream = NULL; - - fd = btrfs_open_dir(path, &dirstream, 0); - if (fd < 0) - return -1; - closedir(dirstream); - - ret = btrfs_check_for_mixed_profiles_by_fd(fd); - close(fd); - - return ret; -} - int btrfs_check_for_mixed_profiles_by_fd(int fd) { int ret; diff --git a/common/utils.h b/common/utils.h index 79c168c5..d825f391 100644 --- a/common/utils.h +++ b/common/utils.h @@ -144,7 +144,6 @@ static inline int btrfs_test_for_mixed_profiles_by_fd(int fd) return btrfs_string_check_for_mixed_profiles_by_fd(fd, NULL, NULL, NULL, NULL); } -int btrfs_check_for_mixed_profiles_by_path(const char *path); int btrfs_check_for_mixed_profiles_by_fd(int fd); #endif