mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
scstadmin: Remove duplicate code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3766,24 +3766,6 @@ sub listTargetGroupTargetAttributes {
|
||||
return listAttributes($attributes, $nonkey);
|
||||
}
|
||||
|
||||
sub listTargetGroupTargetAttributes {
|
||||
my $group = shift;
|
||||
my $tgroup = shift;
|
||||
my $tgt = shift;
|
||||
my $nonkey = shift;
|
||||
|
||||
my $attributes = $SCST->targetGroupTargetAttributes($group, $tgroup, $tgt);
|
||||
|
||||
return TRUE if issueWarning($SCST->errorString());
|
||||
|
||||
if (!scalar(keys %{$attributes})) {
|
||||
print "No such target '$tgt' exists within specified target group.\n";
|
||||
return;
|
||||
}
|
||||
|
||||
return listAttributes($attributes, $nonkey);
|
||||
}
|
||||
|
||||
####################################################################
|
||||
|
||||
sub setScstAttribute {
|
||||
|
||||
Reference in New Issue
Block a user