diff options
author | Thanos Apollo <[email protected]> | 2023-09-29 09:15:07 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-09-29 09:20:01 +0300 |
commit | bc6ce90e0f7b20fe27f5e2b309622cd225e45578 (patch) | |
tree | a810c626a6028bfa3e9c34ae1aeb7f81e4eddbdb | |
parent | c9f50a5880b5a9d229ec9a5c9b2b2e1b9c76c964 (diff) |
remove duplicate formatting functions
-rw-r--r-- | yeetube-buffer.el | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/yeetube-buffer.el b/yeetube-buffer.el index 75a99a6..1e4970e 100644 --- a/yeetube-buffer.el +++ b/yeetube-buffer.el @@ -111,18 +111,6 @@ "...")))) (propertize formatted-string 'face 'yeetube-face-duration))) -(defun yeetube-buffer--format-video-duration (video-duration) - "Format a video VIDEO-DURATION to be inserted in the *yeetube* buffer." - (let* ((n (string-width video-duration)) - (extra-chars (- n 7)) - (formatted-string (if (<= extra-chars 0) - (concat video-duration - (make-string (abs extra-chars) ?\ ) - " ") - (concat (seq-subseq video-duration 0 7) - "...")))) - (propertize formatted-string 'face 'yeetube-face-duration))) - (defun yeetube-buffer--format-channel (channel) "Format a video CHANNEL to be inserted in the *yeetube* buffer." (let* ((n (string-width channel)) |