summaryrefslogtreecommitdiff
path: root/lib/VNDB/DB/Docs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VNDB/DB/Docs.pm')
-rw-r--r--lib/VNDB/DB/Docs.pm12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/VNDB/DB/Docs.pm b/lib/VNDB/DB/Docs.pm
index 27cabf6e..d7c220ff 100644
--- a/lib/VNDB/DB/Docs.pm
+++ b/lib/VNDB/DB/Docs.pm
@@ -5,7 +5,7 @@ use strict;
use warnings;
use Exporter 'import';
-our @EXPORT = qw|dbDocGet dbDocGetRev dbDocRevisionInsert|;
+our @EXPORT = qw|dbDocGet dbDocGetRev|;
# Can only fetch a single document.
@@ -40,14 +40,4 @@ sub dbDocGetRev {
return wantarray ? ($r, 0) : $r;
}
-
-# Updates the edit_* tables, used from dbItemEdit()
-# Arguments: { title content },
-sub dbDocRevisionInsert {
- my($self, $o) = @_;
- my %set = map exists($o->{$_}) ? (qq|"$_" = ?|, $o->{$_}) : (), qw|title content|;
- $self->dbExec('UPDATE edit_docs !H', \%set) if keys %set;
-}
-
-
1;