aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Oteiza2021-01-03 16:58:09 -0500
committerMark Oteiza2021-01-03 16:58:09 -0500
commitd3d60ab2723fe4b3fa15f4d593319d0d08892cb0 (patch)
tree35efa1d54c4d9d0e471b2add67a13d29174c9299
parent1fa1354964aa3a0e5e649df6c963b6c11333a350 (diff)
downloademacs-d3d60ab2723fe4b3fa15f4d593319d0d08892cb0.tar.gz
emacs-d3d60ab2723fe4b3fa15f4d593319d0d08892cb0.zip
Remove unnecessary dependency on seq library
* lisp/json.el: Remove require declaration. (json-encode-array): Just use length and /=.
-rw-r--r--lisp/json.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/json.el b/lisp/json.el
index f5659d81efa..24986590cb0 100644
--- a/lisp/json.el
+++ b/lisp/json.el
@@ -55,7 +55,6 @@
55;;; Code: 55;;; Code:
56 56
57(require 'map) 57(require 'map)
58(require 'seq)
59(require 'subr-x) 58(require 'subr-x)
60 59
61;; Parameters 60;; Parameters
@@ -655,7 +654,7 @@ become JSON objects."
655(defun json-encode-array (array) 654(defun json-encode-array (array)
656 "Return a JSON representation of ARRAY." 655 "Return a JSON representation of ARRAY."
657 (if (and json-encoding-pretty-print 656 (if (and json-encoding-pretty-print
658 (not (seq-empty-p array))) 657 (/= 0 (length array)))
659 (concat 658 (concat
660 "[" 659 "["
661 (json--with-indentation 660 (json--with-indentation