[Libguestfs] [PATCH 2/2] customize: Remove Customize_utils module.

Richard W.M. Jones rjones at redhat.com
Thu Dec 8 13:01:53 UTC 2016


After the previous commit this module is empty, so remove it.
---
 customize/Makefile.am        |  1 -
 customize/customize_main.ml  |  1 -
 customize/customize_run.ml   |  1 -
 customize/customize_utils.ml | 23 -----------------------
 customize/firstboot.ml       |  1 -
 customize/password.ml        |  2 --
 customize/ssh_key.ml         |  2 --
 customize/timezone.ml        |  2 --
 generator/customize.ml       |  2 --
 po/POTFILES-ml               |  1 -
 v2v/Makefile.am              |  1 -
 11 files changed, 37 deletions(-)
 delete mode 100644 customize/customize_utils.ml

diff --git a/customize/Makefile.am b/customize/Makefile.am
index f2e1c15..808f86f 100644
--- a/customize/Makefile.am
+++ b/customize/Makefile.am
@@ -52,7 +52,6 @@ SOURCES_MLI = \
 
 # This list must be in dependency order.
 SOURCES_ML = \
-	customize_utils.ml \
 	append_line.ml \
 	crypt.ml \
 	firstboot.ml \
diff --git a/customize/customize_main.ml b/customize/customize_main.ml
index 5613277..5b46412 100644
--- a/customize/customize_main.ml
+++ b/customize/customize_main.ml
@@ -20,7 +20,6 @@ open Common_gettext.Gettext
 open Common_utils
 open Getopt.OptionName
 
-open Customize_utils
 open Customize_cmdline
 
 open Printf
diff --git a/customize/customize_run.ml b/customize/customize_run.ml
index 9ec7b5a..32a2027 100644
--- a/customize/customize_run.ml
+++ b/customize/customize_run.ml
@@ -22,7 +22,6 @@ open Printf
 open Common_gettext.Gettext
 open Common_utils
 
-open Customize_utils
 open Customize_cmdline
 open Password
 open Append_line
diff --git a/customize/customize_utils.ml b/customize/customize_utils.ml
deleted file mode 100644
index feb4a16..0000000
--- a/customize/customize_utils.ml
+++ /dev/null
@@ -1,23 +0,0 @@
-(* virt-customize
- * Copyright (C) 2013-2016 Red Hat Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *)
-
-(* Utilities/common functions used in virt-customize only. *)
-
-open Printf
-
-open Common_utils
diff --git a/customize/firstboot.ml b/customize/firstboot.ml
index f7213bc..34e58a0 100644
--- a/customize/firstboot.ml
+++ b/customize/firstboot.ml
@@ -21,7 +21,6 @@ open Printf
 open Common_utils
 open Common_gettext.Gettext
 
-open Customize_utils
 open Regedit
 
 let unix2dos s =
diff --git a/customize/password.ml b/customize/password.ml
index 8a9fed3..fbd42a8 100644
--- a/customize/password.ml
+++ b/customize/password.ml
@@ -19,8 +19,6 @@
 open Common_gettext.Gettext
 open Common_utils
 
-open Customize_utils
-
 open Printf
 
 type password_crypto = [`MD5 | `SHA256 | `SHA512 ]
diff --git a/customize/ssh_key.ml b/customize/ssh_key.ml
index d05816c..41f900a 100644
--- a/customize/ssh_key.ml
+++ b/customize/ssh_key.ml
@@ -19,8 +19,6 @@
 open Common_gettext.Gettext
 open Common_utils
 
-open Customize_utils
-
 open Printf
 open Sys
 open Unix
diff --git a/customize/timezone.ml b/customize/timezone.ml
index be5e41d..bc40d6e 100644
--- a/customize/timezone.ml
+++ b/customize/timezone.ml
@@ -18,8 +18,6 @@
 
 open Common_utils
 
-open Customize_utils
-
 open Printf
 
 let set_timezone (g : Guestfs.guestfs) root timezone =
diff --git a/generator/customize.ml b/generator/customize.ml
index 12c78a2..6d0b237 100644
--- a/generator/customize.ml
+++ b/generator/customize.ml
@@ -626,8 +626,6 @@ open Common_utils
 open Common_gettext.Gettext
 open Getopt.OptionName
 
-open Customize_utils
-
 ";
   generate_ops_struct_decl ();
   pr "\n";
diff --git a/po/POTFILES-ml b/po/POTFILES-ml
index e9827f2..3ec812a 100644
--- a/po/POTFILES-ml
+++ b/po/POTFILES-ml
@@ -22,7 +22,6 @@ customize/crypt.ml
 customize/customize_cmdline.ml
 customize/customize_main.ml
 customize/customize_run.ml
-customize/customize_utils.ml
 customize/firstboot.ml
 customize/hostname.ml
 customize/password.ml
diff --git a/v2v/Makefile.am b/v2v/Makefile.am
index 2802056..cbb974f 100644
--- a/v2v/Makefile.am
+++ b/v2v/Makefile.am
@@ -122,7 +122,6 @@ virt_v2v_CFLAGS = \
 	$(LIBVIRT_CFLAGS)
 
 BOBJECTS = \
-	$(top_builddir)/customize/customize_utils.cmo \
 	$(top_builddir)/customize/firstboot.cmo \
 	$(top_builddir)/customize/SELinux_relabel.cmo \
 	$(SOURCES_ML:.ml=.cmo)
-- 
2.10.2




More information about the Libguestfs mailing list