summaryrefslogtreecommitdiffstats
path: root/src/launch-appliance.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-19 19:05:55 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-19 19:06:23 +0100
commit9d314c7c3f4a22a21d2a2f5b8efe01dd7c43cbe8 (patch)
treebec8ec25488dae26651034d253680222d358c51f /src/launch-appliance.c
parent4c261da5ba8a7679709bf6c8efefc2598c5f5f51 (diff)
downloadlibguestfs-9d314c7c3f4a22a21d2a2f5b8efe01dd7c43cbe8.tar.gz
libguestfs-9d314c7c3f4a22a21d2a2f5b8efe01dd7c43cbe8.tar.xz
libguestfs-9d314c7c3f4a22a21d2a2f5b8efe01dd7c43cbe8.zip
launch: Remove some dead code from the appliance method.
Diffstat (limited to 'src/launch-appliance.c')
-rw-r--r--src/launch-appliance.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/launch-appliance.c b/src/launch-appliance.c
index 9c950073..64bbebc1 100644
--- a/src/launch-appliance.c
+++ b/src/launch-appliance.c
@@ -44,34 +44,6 @@ static int qemu_supports_virtio_scsi (guestfs_h *g);
static char *qemu_drive_param (guestfs_h *g, const struct drive *drv, size_t index);
static char *drive_name (size_t index, char *ret);
-#if 0
-static int qemu_supports_re (guestfs_h *g, const pcre *option_regex);
-
-static void compile_regexps (void) __attribute__((constructor));
-static void free_regexps (void) __attribute__((destructor));
-
-static void
-compile_regexps (void)
-{
- const char *err;
- int offset;
-
-#define COMPILE(re,pattern,options) \
- do { \
- re = pcre_compile ((pattern), (options), &err, &offset, NULL); \
- if (re == NULL) { \
- ignore_value (write (2, err, strlen (err))); \
- abort (); \
- } \
- } while (0)
-}
-
-static void
-free_regexps (void)
-{
-}
-#endif
-
/* Functions to add a string to the current command line. */
static void
alloc_cmdline (guestfs_h *g)
@@ -975,20 +947,6 @@ qemu_supports (guestfs_h *g, const char *option)
return strstr (g->qemu_help, option) != NULL;
}
-#if 0
-/* As above but using a regex instead of a fixed string. */
-static int
-qemu_supports_re (guestfs_h *g, const pcre *option_regex)
-{
- if (!g->qemu_help) {
- if (test_qemu (g) == -1)
- return -1;
- }
-
- return match (g, g->qemu_help, option_regex);
-}
-#endif
-
/* Test if device is supported by qemu (currently just greps the -device ?
* output).
*/