aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/uniq_flatten.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/functions/uniq_flatten.rb')
-rw-r--r--lib/puppet/parser/functions/uniq_flatten.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/puppet/parser/functions/uniq_flatten.rb b/lib/puppet/parser/functions/uniq_flatten.rb
deleted file mode 100644
index 4841c4d..0000000
--- a/lib/puppet/parser/functions/uniq_flatten.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-Puppet::Parser::Functions::newfunction(
- :uniq_flatten,
- :type => :rvalue,
- :doc => "Flattens an array and make it uniq
-
- Example: uniq_flatten([['a','b'],'a']) -> ['a','b']"
-) do |args|
- raise Puppet::ParseError, 'uniq_flatten() needs one arguments' if args.length != 1
- args[0].to_a.flatten.collect(&:to_s).uniq
-end