remove some legacy functions that are now in upstream

This commit is contained in:
mh 2010-10-21 00:04:25 +02:00 committed by Micah Anderson
parent 51e06fd0d2
commit 90a172d01f
2 changed files with 0 additions and 26 deletions

View file

@ -1,9 +0,0 @@
# return the sha1 hash
require 'digest/sha1'
module Puppet::Parser::Functions
newfunction(:sha1, :type => :rvalue) do |args|
Digest::SHA1.hexdigest(args[0])
end
end

View file

@ -1,17 +0,0 @@
# split($string, $delimiter) : $string
# split($string[], $delimiter) : $string[][]
#
# Split the first argument(s) on every $delimiter. $delimiter is interpreted as
# Ruby regular expression.
#
# For long-term portability it is recommended to refrain from using Ruby's
# extended RE features.
module Puppet::Parser::Functions
newfunction(:split, :type => :rvalue) do |args|
if args[0].is_a?(Array)
args.collect do |a| a.split(/#{args[1]}/) end
else
args[0].split(/#{args[1]}/)
end
end
end