]> Sergey Matveev's repositories - public-inbox.git/commit
smsg: remove remaining accessor methods
authorEric Wong <e@yhbt.net>
Mon, 1 Jun 2020 10:06:56 +0000 (10:06 +0000)
committerEric Wong <e@yhbt.net>
Wed, 3 Jun 2020 04:04:21 +0000 (04:04 +0000)
commit62b80b61d334361677e26e9ddb966e6bc5f8635d
treef10d0e4e7a0b7a1319535907581abae951e2183d
parentdee9a7231ca1019f56eea3596f0c428769e3eac1
smsg: remove remaining accessor methods

We'll continue to favor simpler data models that can be
used directly rather than wasting time and memory with
accessor APIs.

The ->from, ->to, -cc, ->mid, ->subject, >references methods can
all be trivially replaced by hash lookups since all their values
are stored in doc_data.  Most remaining callers of those methods
were test cases, anyways.

->from_name is only used in the PSGI code, so we can just
use ->psgi_cull to take care of populating the {from_name}
field.
lib/PublicInbox/ExtMsg.pm
lib/PublicInbox/Mbox.pm
lib/PublicInbox/NNTP.pm
lib/PublicInbox/OverIdx.pm
lib/PublicInbox/Smsg.pm
t/altid.t
t/altid_v2.t
t/search.t
t/v2writable.t