From: 2xsec Date: Wed, 12 Sep 2018 08:31:40 +0000 (+0900) Subject: file_utils: remove unused function X-Git-Tag: lxc-3.1.0~112^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b7421f2e587c149a49e2ec99ad829264400c729;p=thirdparty%2Flxc.git file_utils: remove unused function Signed-off-by: 2xsec --- diff --git a/src/lxc/file_utils.c b/src/lxc/file_utils.c index 16897d627..9a7bd160e 100644 --- a/src/lxc/file_utils.c +++ b/src/lxc/file_utils.c @@ -239,18 +239,6 @@ int lxc_make_tmpfile(char *template, bool rm) return fd; } -/* In overlayfs, st_dev is unreliable. So on overlayfs we don't do the - * lxc_rmdir_onedev() - */ -static bool is_native_overlayfs(const char *path) -{ - if (has_fs_type(path, OVERLAY_SUPER_MAGIC) || - has_fs_type(path, OVERLAYFS_SUPER_MAGIC)) - return true; - - return false; -} - bool is_fs_type(const struct statfs *fs, fs_type_magic magic_val) { return (fs->f_type == (fs_type_magic)magic_val);