From 247a24ccd28d008085c78725c53b0d65cfb4f289 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 1 Nov 2024 06:12:30 -0500 Subject: [PATCH] rm old code Signed-off-by: Jeff Carr --- libvirtxml.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/libvirtxml.go b/libvirtxml.go index 5576710..d8a16cb 100644 --- a/libvirtxml.go +++ b/libvirtxml.go @@ -64,23 +64,6 @@ func setDiskFilename(domcfg *libvirtxml.Domain, filename string) { } } -func AddDefaultXml(d *libvirtxml.Domain, filename string) error { - /* - fullname := "resources/xml/" + filename + ".xml" - pfile, err := resources.ReadFile(fullname) - if err != nil { - log.Println("ERROR:", err) - return - } - */ - - err := d.Unmarshal(filename) - if err != nil { - log.Info("Marshal failed on file", filename) - } - return err -} - func ReadXml(filename string) (*libvirtxml.Domain, error) { log.Verbose("parse xml file:", filename)