aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-04-07 18:25:13 +0300
committerTulir Asokan <tulir@maunium.net>2019-04-07 18:25:13 +0300
commit083ae8bd44ad34859781ea88cae9f57d9404c7e5 (patch)
tree58b12f912eeaeae8b746fdea7abb5e549514085d /ui
parentb0c4ef81e9a1c7d9376685875d795ad3b5d8db01 (diff)
Remove commented code
Diffstat (limited to 'ui')
-rw-r--r--ui/messages/htmlmessage.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/ui/messages/htmlmessage.go b/ui/messages/htmlmessage.go
index 33e4d87..51678ba 100644
--- a/ui/messages/htmlmessage.go
+++ b/ui/messages/htmlmessage.go
@@ -65,7 +65,6 @@ func (hw *HTMLMessage) CalculateBuffer(preferences config.UserPreferences, width
// TODO account for bare messages in initial startX
startX := 0
hw.Root.calculateBuffer(width, startX, preferences.BareMessageView)
- //debug.Print(hw.Root.String())
}
func (hw *HTMLMessage) Height() int {
@@ -73,10 +72,12 @@ func (hw *HTMLMessage) Height() int {
}
func (hw *HTMLMessage) PlainText() string {
+ // FIXME
return "Plaintext unavailable"
}
func (hw *HTMLMessage) NotificationContent() string {
+ // FIXME
return "Notification content unavailable"
}
@@ -212,20 +213,12 @@ func (he *HTMLEntity) calculateBuffer(width, startX int, bare bool) int {
return 0
}
-// Regular expressions used to split lines when calculating the buffer.
-/*var (
- boundaryPattern = regexp.MustCompile(`([[:punct:]]\s*|\s+)`)
- bareBoundaryPattern = regexp.MustCompile(`(\s+)`)
- spacePattern = regexp.MustCompile(`\s+`)
-)*/
-
func trim(extract, full string, bare bool) (string, bool) {
if len(extract) == len(full) {
return extract, true
}
if spaces := spacePattern.FindStringIndex(full[len(extract):]); spaces != nil && spaces[0] == 0 {
extract = full[:len(extract)+spaces[1]]
- //return extract, true
}
regex := boundaryPattern
if bare {