diff options
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r-- | widgets/msgviewer.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index f8b2816f..7365dc53 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -387,22 +387,6 @@ func (mv *MessageViewer) Close() error { return nil } -func (mv *MessageViewer) UpdateScreen() { - if mv.switcher == nil { - return - } - parts := mv.switcher.parts - selected := mv.switcher.selected - if selected < 0 { - return - } - if len(parts) > 0 && selected < len(parts) { - if part := parts[selected]; part != nil { - part.UpdateScreen() - } - } -} - func (ps *PartSwitcher) Invalidate() { ui.Invalidate() } @@ -638,10 +622,6 @@ func (pv *PartViewer) SetSource(reader io.Reader) { pv.attemptCopy() } -func (pv *PartViewer) UpdateScreen() { - pv.Invalidate() -} - func (pv *PartViewer) attemptCopy() { if pv.source == nil || pv.filter == nil || |