From 99c8425bc73b8ba565c79e4401c99a11f5ce2c3a Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Wed, 16 Aug 2023 11:05:04 +0300 Subject: [PATCH] org-babel-insert-result: Remove duplicate let-binding * lisp/ob-core.el (org-babel-insert-result): Remove duplicate computation of the INLINE value. --- lisp/ob-core.el | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 63f83a271..13e1ef49a 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -2459,10 +2459,6 @@ INFO may provide the values of these header arguments (in the (save-excursion (let* ((visible-beg (point-min-marker)) (visible-end (copy-marker (point-max) t)) - (inline (let ((context (org-element-context))) - (and (org-element-type-p - context '(inline-babel-call inline-src-block)) - context))) (existing-result (org-babel-where-is-src-block-result t nil hash)) (results-switches (cdr (assq :results_switches (nth 2 info)))) ;; When results exist outside of the current visible