aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/inline.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-10 01:49:16 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-10 01:49:16 +0000
commit13c7a51f1f4b2f809681c4e2651bf0d3992a863e (patch)
treec37c0217b78996c694d73425b00f3ffa6a55f43e /IkiWiki/Plugin/inline.pm
parent15d61ff4ed5991badea8f817f5b858c5588a2ea5 (diff)
downloadikiwiki-13c7a51f1f4b2f809681c4e2651bf0d3992a863e.tar
ikiwiki-13c7a51f1f4b2f809681c4e2651bf0d3992a863e.tar.gz
* Optimise displaytime, trimming maybe 6% off the build time.
Diffstat (limited to 'IkiWiki/Plugin/inline.pm')
-rw-r--r--IkiWiki/Plugin/inline.pm5
1 files changed, 0 insertions, 5 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index fc1dfdac3..d0cfbf873 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -266,8 +266,6 @@ sub get_inline_content ($$) { #{{{
sub date_822 ($) { #{{{
my $time=shift;
- eval q{use POSIX};
- error($@) if $@;
my $lc_time=POSIX::setlocale(&POSIX::LC_TIME);
POSIX::setlocale(&POSIX::LC_TIME, "C");
my $ret=POSIX::strftime("%a, %d %b %Y %H:%M:%S %z", localtime($time));
@@ -278,8 +276,6 @@ sub date_822 ($) { #{{{
sub date_3339 ($) { #{{{
my $time=shift;
- eval q{use POSIX};
- error($@) if $@;
my $lc_time=POSIX::setlocale(&POSIX::LC_TIME);
POSIX::setlocale(&POSIX::LC_TIME, "C");
my $ret=POSIX::strftime("%Y-%m-%dT%H:%M:%SZ", localtime($time));
@@ -401,7 +397,6 @@ sub pingurl (@) { #{{{
defined(my $pid = fork) or error("Can't fork: $!");
return if $pid;
chdir '/';
- eval q{use POSIX 'setsid'};
setsid() or error("Can't start a new session: $!");
open STDIN, '/dev/null';
open STDOUT, '>/dev/null';