branch: externals/org
commit 99c8425bc73b8ba565c79e4401c99a11f5ce2c3a
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    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 63f83a2712..13e1ef49ae 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

Reply via email to