diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-01-26 13:37:57 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-01-26 13:37:57 -0500 |
commit | 53be24789e0081f948ba719448989f6a12d03b30 (patch) | |
tree | 7c900c2ee99a8d87172e682a5c2f868ce0c552cc | |
parent | 9750f929ad7b80669cb7dacffcea38aa213c984a (diff) |
don't add new exported warning function
Nothing in the po plugin actually uses this function.
The benefit of adding the function in general is debatable, but I'd
prefer to keep the changes involved in merging po at a minimum.
-rw-r--r-- | IkiWiki.pm | 6 | ||||
-rw-r--r-- | doc/plugins/write.mdwn | 4 |
2 files changed, 1 insertions, 9 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 5df115104..66fea4369 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -21,7 +21,7 @@ our @EXPORT = qw(hook debug error template htmlpage add_depends pagespec_match bestlink htmllink readfile writefile pagetype srcfile pagename displaytime will_render gettext urlto targetpage add_underlay pagetitle titlepage linkpage newpagefile - inject warning + inject %config %links %pagestate %wikistate %renderedfiles %pagesources %destsources); our $VERSION = 3.00; # plugin interface version, next is ikiwiki version @@ -579,10 +579,6 @@ sub error ($;$) { die $message."\n"; } -sub warning ($) { - return log_message(warning => @_); -} - sub debug ($) { return unless $config{verbose}; return log_message(debug => @_); diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 05dfc5d09..4704ba16d 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -561,10 +561,6 @@ the id can be controled by the user. Logs a debugging message. These are supressed unless verbose mode is turned on. -#### `warning($)` - -Logs a warning message. - #### `error($;$)` Aborts with an error message. If the second parameter is passed, it is a |