X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=bindings%2Fperl%2Flib%2FCollectd.pm;h=ca3b5d2349805a505ae22df4faad8c7b9feda529;hb=b4c8f3f762d666742c774ab3b45815e5a416e5da;hp=ef2f3e5b24cbeeca7434efd2e83deba432f07fed;hpb=50d491ff960c641540b3922224ca9281a4d2f9c5;p=collectd.git diff --git a/bindings/perl/lib/Collectd.pm b/bindings/perl/lib/Collectd.pm index ef2f3e5b..ca3b5d23 100644 --- a/bindings/perl/lib/Collectd.pm +++ b/bindings/perl/lib/Collectd.pm @@ -116,6 +116,7 @@ my @fc_plugins : shared = (); my %cf_callbacks : shared = (); my %types = ( + TYPE_CONFIG, "config", TYPE_INIT, "init", TYPE_READ, "read", TYPE_WRITE, "write", @@ -464,35 +465,6 @@ sub plugin_flush { } } -sub plugin_flush_one { - my $timeout = shift; - my $name = shift; - - WARNING ("Collectd::plugin_flush_one is deprecated - " - . "use Collectd::plugin_flush instead."); - - if (! (defined ($timeout) && defined ($name))) { - ERROR ("Usage: Collectd::plugin_flush_one(timeout, name)"); - return; - } - - plugin_flush (plugins => $name, timeout => $timeout); -} - -sub plugin_flush_all { - my $timeout = shift; - - WARNING ("Collectd::plugin_flush_all is deprecated - " - . "use Collectd::plugin_flush instead."); - - if (! defined ($timeout)) { - ERROR ("Usage: Collectd::plugin_flush_all(timeout)"); - return; - } - - plugin_flush (timeout => $timeout); -} - sub fc_call { my $type = shift; my $name = shift;