get rid of objectTreeParser()->showOnlyOneMimePart()
ClosedPublic

Authored by knauss on Oct 31 2017, 1:31 PM.

Details

Summary

the showOnlyOneMimePart setting is strange and mostly unused
in objecttreeparser. Only used once at processing and later needed for the renderer.

Test Plan

run tests

Diff Detail

Repository
R94 PIM: Message Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
knauss created this revision.Oct 31 2017, 1:31 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptOct 31 2017, 1:31 PM
Restricted Application added a subscriber: KDE PIM. · View Herald Transcript
vkrause added inline comments.Oct 31 2017, 5:55 PM
mimetreeparser/src/bodypartformatter.cpp
126

This is now dead code.

mimetreeparser/src/messagepart.h
70–71

remove commented out code?

Soory I forgotten to mark this as WIP - I found out, that showOnlyOneMimePart() is not always false, so I need to refactor this.

knauss updated this revision to Diff 21780.Nov 2 2017, 3:08 PM

delete isHidden directly.

knauss marked 2 inline comments as done.Nov 2 2017, 3:14 PM

should remove all commented code now together with D8620 and D8621.

now this one is no WIP and ready for final review.

vkrause accepted this revision.Nov 13 2017, 6:09 PM
This revision is now accepted and ready to land.Nov 13 2017, 6:09 PM
This revision was automatically updated to reflect the committed changes.