projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
898b1fd
)
lib/sysroot-cleanup: Drop dead code
author
Jonathan Lebon
<jonathan@jlebon.com>
Thu, 13 Apr 2023 21:22:39 +0000
(17:22 -0400)
committer
Jonathan Lebon
<jonathan@jlebon.com>
Fri, 14 Apr 2023 13:57:16 +0000
(09:57 -0400)
We weren't actually using this `stbuf` anywhere.
src/libostree/ostree-sysroot-cleanup.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-sysroot-cleanup.c
b/src/libostree/ostree-sysroot-cleanup.c
index 619831d0afd813b529e6d21c78e5f1dfe04ee79c..d8347f45842796ae7a6e0e28bed80515c1ed221c 100644
(file)
--- 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);