From 032cf467c360f7df1fb3d587a12ec1dfb8c13d2a Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 27 Nov 2019 12:49:39 +0100 Subject: [PATCH] marsadm: remove old instantiate_systemd_unit() --- userspace/marsadm | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/userspace/marsadm b/userspace/marsadm index aad1f23e..cd02cc55 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -568,22 +568,6 @@ sub _instantiate_systemd_unit { return (1, $outfile, $replac); } -sub instantiate_systemd_unit { - my ($cmd, $res, $template_file, $target) = @_; - my $template_name = `basename "$template_file"`; - chomp $template_name; - ($template_name, my $env) = make_env($cmd, $res, $template_name); - my $subst = $template_name; - if ($target) { - ($env, $subst) = match_systemd_vars($env, $template_name, $target); - unless ($env) { - lprint "==== Cannot match systemd template '$template_name' => '$target'\n" if $verbose; - return (0, $template_name); - } - } - return _instantiate_systemd_unit($env, $template_file, $subst); -} - sub make_systemd_unit { my ($cmd, $res, $target) = @_; my @res_list;