btrfs-progs: remove unused function btrfs_check_for_mixed_profiles_by_path
It's not used by any of the commands printing the warning as the fd is always available. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
33fc7a13ff
commit
bb8995000c
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue