summaryrefslogtreecommitdiff
path: root/lib/sbin/ConfigurationParser.pl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sbin/ConfigurationParser.pl')
-rw-r--r--lib/sbin/ConfigurationParser.pl28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/sbin/ConfigurationParser.pl b/lib/sbin/ConfigurationParser.pl
index 533ecde0..59ebba53 100644
--- a/lib/sbin/ConfigurationParser.pl
+++ b/lib/sbin/ConfigurationParser.pl
@@ -158,34 +158,6 @@ sub CreateConfigurationDatabase
&CST_error(0, $message);
}
- # Turn optional capabilities into required capabilities, if the
- # capability is provided. This way we don't have to treat required
- # and optional requirements differently.
- my %providedcaps;
- foreach my $thorn (sort keys %thorns)
- {
- if ($cfg{"\U$thorn\E PROVIDES"})
- {
- foreach my $providedcap (split (' ', $cfg{"\U$thorn\E PROVIDES"}))
- {
- $providedcaps{$providedcap} = 1;
- }
- }
- }
- foreach my $thorn (sort keys %thorns)
- {
- if ($cfg{"\U$thorn\E OPTIONAL"})
- {
- foreach my $optionalcap (split (' ', $cfg{"\U$thorn\E OPTIONAL"}))
- {
- if ($providedcaps{$optionalcap})
- {
- $cfg{"\U$thorn\E REQUIRES"} .= " $optionalcap";
- }
- }
- }
- }
-
return \%cfg;
}