summaryrefslogtreecommitdiffstats
path: root/fish/edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'fish/edit.c')
-rw-r--r--fish/edit.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/fish/edit.c b/fish/edit.c
index a4111806..b26a2dda 100644
--- a/fish/edit.c
+++ b/fish/edit.c
@@ -33,7 +33,6 @@
static char *generate_random_name (const char *filename);
static int copy_attributes (const char *src, const char *dest);
-static int feature_available (guestfs_h *g, const char *feature);
/* guestfish edit command, suggested by Ján Ondrej, implemented by RWMJ */
@@ -242,22 +241,3 @@ copy_attributes (const char *src, const char *dest)
return 0;
}
-
-static int
-feature_available (guestfs_h *g, const char *feature)
-{
- /* If there's an error we should ignore it, so to do that we have to
- * temporarily replace the error handler with a null one.
- */
- guestfs_error_handler_cb old_error_cb;
- void *old_error_data;
- old_error_cb = guestfs_get_error_handler (g, &old_error_data);
- guestfs_set_error_handler (g, NULL, NULL);
-
- const char *groups[] = { feature, NULL };
- int r = guestfs_available (g, (char * const *) groups);
-
- guestfs_set_error_handler (g, old_error_cb, old_error_data);
-
- return r == 0 ? 1 : 0;
-}
OSZAR »