summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lebon <jonathan@jlebon.com>2023-04-13 17:22:39 -0400
committerJonathan Lebon <jonathan@jlebon.com>2023-04-14 09:57:16 -0400
commit49eb8c04d547e9cc3cfcca4e0571deedd9f36040 (patch)
tree7cc74a053d9ab2a7a4bb65e739616f4e0409e5f7
parent898b1fdc705cc7829a188a7f6351cbbf37fc237f (diff)
downloadostree-49eb8c04d547e9cc3cfcca4e0571deedd9f36040.tar.gz
lib/sysroot-cleanup: Drop dead code
We weren't actually using this `stbuf` anywhere.
-rw-r--r--src/libostree/ostree-sysroot-cleanup.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libostree/ostree-sysroot-cleanup.c b/src/libostree/ostree-sysroot-cleanup.c
index 619831d0..d8347f45 100644
--- a/src/libostree/ostree-sysroot-cleanup.c
+++ b/src/libostree/ostree-sysroot-cleanup.c
@@ -257,13 +257,6 @@ cleanup_old_deployments (OstreeSysroot *self,
GCancellable *cancellable,
GError **error)
{
- /* Gather the device/inode of the rootfs, so we can double
- * check we won't delete it.
- */
- struct stat root_stbuf;
- if (!glnx_fstatat (AT_FDCWD, "/", &root_stbuf, 0, error))
- return FALSE;
-
/* Load all active deployments referenced by bootloader configuration. */
g_autoptr(GHashTable) active_deployment_dirs =
g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);