aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-08-02 13:14:33 +0200
committerintrigeri <intrigeri@boum.org>2010-08-02 13:14:33 +0200
commit46a997db16e68ecdf3e1c13ea444afdb4e767a2f (patch)
tree1e2829a5555c889f6ac4b0eb9f8c82efa94c5513
parent352c62a8de8b2e7b532c487e74283ed36558abd3 (diff)
downloadikiwiki-46a997db16e68ecdf3e1c13ea444afdb4e767a2f.tar
ikiwiki-46a997db16e68ecdf3e1c13ea444afdb4e767a2f.tar.gz
Revert "Added a rescan hook."
This reverts commit 25447bccae0439ea56da7a788482a4807c7c459d.
-rw-r--r--IkiWiki/Plugin/skeleton.pm.example7
-rw-r--r--IkiWiki/Render.pm8
-rw-r--r--doc/plugins/write.mdwn11
3 files changed, 0 insertions, 26 deletions
diff --git a/IkiWiki/Plugin/skeleton.pm.example b/IkiWiki/Plugin/skeleton.pm.example
index 708d92830..a57a2c8fe 100644
--- a/IkiWiki/Plugin/skeleton.pm.example
+++ b/IkiWiki/Plugin/skeleton.pm.example
@@ -18,7 +18,6 @@ sub import {
hook(type => "filter", id => "skeleton", call => \&filter);
hook(type => "linkify", id => "skeleton", call => \&linkify);
hook(type => "scan", id => "skeleton", call => \&scan);
- hook(type => "rescan", id => "skeleton", call => \&rescan);
hook(type => "htmlize", id => "skeleton", call => \&htmlize);
hook(type => "sanitize", id => "skeleton", call => \&sanitize);
hook(type => "indexhtml", id => "skeleton", call => \&indexhtml);
@@ -105,12 +104,6 @@ sub scan (@) {
debug("skeleton plugin running as scan");
}
-sub rescan (@) {
- my %params=@_;
-
- debug("skeleton plugin running as rescan");
-}
-
sub htmlize (@) {
my %params=@_;
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 5ce802317..a653ab2da 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -183,14 +183,6 @@ sub scan ($) {
# Preprocess in scan-only mode.
preprocess($page, $page, $content, 1);
-
- run_hooks(rescan => sub {
- shift->(
- page => $page,
- content => $content,
- );
- });
-
}
else {
will_render($file, $file, 1);
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index 335320394..10b4df835 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -194,17 +194,6 @@ them to `%links`. Present in IkiWiki 2.40 and later.
The function is passed named parameters "page" and "content". Its return
value is ignored.
-### rescan
-
- hook(type => "rescan", id => "foo", call => \&scan);
-
-This hook is called after the scan hook has been run, as well as the
-preprocess hook in scan mode. It is used to collect additional
-metadata that depends on a first scan to have been performed already.
-
-The function is passed named parameters "page" and "content". Its return
-value is ignored.
-
### filter
hook(type => "filter", id => "foo", call => \&filter);