summaryrefslogtreecommitdiffhomepage
path: root/internal/tui/components
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-13 06:51:28 -0500
committeradamdottv <[email protected]>2025-05-13 06:51:28 -0500
commit0c21ca531856c2f73da0b27ce215dab8385a9ef5 (patch)
tree8e4cd4117ce9c294437872f5170763aa2fb1519f /internal/tui/components
parent0117c72a2c3f5a91516d5d8158560637b4a16a4c (diff)
downloadopencode-0c21ca531856c2f73da0b27ce215dab8385a9ef5.tar.gz
opencode-0c21ca531856c2f73da0b27ce215dab8385a9ef5.zip
chore: cleanup
Diffstat (limited to 'internal/tui/components')
-rw-r--r--internal/tui/components/chat/message.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/internal/tui/components/chat/message.go b/internal/tui/components/chat/message.go
index 4c747fe32..fa4c2e299 100644
--- a/internal/tui/components/chat/message.go
+++ b/internal/tui/components/chat/message.go
@@ -672,15 +672,3 @@ func renderToolMessage(
}
return toolMsg
}
-
-// Helper function to format the time difference between two Unix timestamps
-func formatTimestampDiff(start, end int64) string {
- diffSeconds := float64(end-start) / 1000.0 // Convert to seconds
- if diffSeconds < 1 {
- return fmt.Sprintf("%dms", int(diffSeconds*1000))
- }
- if diffSeconds < 60 {
- return fmt.Sprintf("%.1fs", diffSeconds)
- }
- return fmt.Sprintf("%.1fm", diffSeconds/60)
-}