diff options
author | Eric Wong <e@80x24.org> | 2019-11-15 09:50:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-11-16 11:05:23 +0000 |
commit | fe565af9e3e1634412c21fb2fe2bb7612c430e47 (patch) | |
tree | aa6d75fd6467c0969691f68e4e7199c634757565 /lib/PublicInbox/InboxWritable.pm | |
parent | 16b69a6a99661df777affec547ef53bd9007f1f2 (diff) | |
download | public-inbox-fe565af9e3e1634412c21fb2fe2bb7612c430e47.tar.gz |
inboxwritable: add ->cleanup method
We've been using this in -edit, and will be using it in some more scripts and tests to optimize for run_mode=2 with run_script. Keeping this in the *Writable modules since I don't see it being useful for the WWW and NNTP read-only interfaces which use PublicInbox::Inbox.
Diffstat (limited to 'lib/PublicInbox/InboxWritable.pm')
-rw-r--r-- | lib/PublicInbox/InboxWritable.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/PublicInbox/InboxWritable.pm b/lib/PublicInbox/InboxWritable.pm index c73910ac..d8391251 100644 --- a/lib/PublicInbox/InboxWritable.pm +++ b/lib/PublicInbox/InboxWritable.pm @@ -257,4 +257,8 @@ sub umask_prepare { $self->{umask} = $umask; } +sub cleanup ($) { + delete @{$_[0]}{qw(over mm git search)}; +} + 1; |