aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanh Vuong <thanhvg@gmail.com>2021-05-17 22:28:08 -0600
committerThanh Vuong <thanhvg@gmail.com>2021-05-17 22:28:08 -0600
commit0bda35e6b2063ddecca2fe2b0dd21f46a3391de3 (patch)
treee42d7aa19c8c31831f07dbfe2349d2811eaf3069
parentae52af1424ccde2b20e88ff8c589eb772162a560 (diff)
remove dead code
-rw-r--r--hnreader.el17
1 files changed, 4 insertions, 13 deletions
diff --git a/hnreader.el b/hnreader.el
index 71d35f6..ec3d130 100644
--- a/hnreader.el
+++ b/hnreader.el
@@ -407,15 +407,6 @@ Also upate `hnreader--history'."
(promise-catch (lambda (reason)
(message "catch error in promise comments: %s" reason)))))
-(defun hnreader-promise-item (url)
- "Promise to print hn URL page to buffer."
- (hnreader--prepare-buffer (hnreader--get-hn-comment-buffer))
- (promise-chain (hnreader--promise-dom url)
- (then (lambda (dom)
- (hnreader--print-comments dom comment-id)))
- (promise-catch (lambda (reason)
- (message "catch error in promise comments: %s" reason)))))
-
;;;###autoload
(defun hnreader-comment (url)
"Print hn URL page to buffer."
@@ -427,10 +418,10 @@ Also upate `hnreader--history'."
(defun hnreader-org-insert-hn-link (url)
"Insert link in org buffer to open a hn item link"
(interactive "sUrl: ")
- (with-current-buffer (current-buffer)
- (insert (format "[[elisp:(hnreader-comment \"%s\")][%s]]"
- url
- url))))
+ (with-current-buffer (current-buffer)
+ (insert (format "[[elisp:(hnreader-comment \"%s\")][%s]]"
+ url
+ url))))
(provide 'hnreader)
;;; hnreader.el ends here