lib/sysroot-cleanup: Drop dead code

We weren't actually using this `stbuf` anywhere.
This commit is contained in:
Jonathan Lebon 2023-04-13 17:22:39 -04:00
parent 898b1fdc70
commit 49eb8c04d5

View File

@ -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);