Remove unnecessary dependency on seq library

* lisp/json.el: Remove require declaration.
(json-encode-array): Just use length and /=.
This commit is contained in:
Mark Oteiza 2021-01-03 16:58:09 -05:00
parent 1fa1354964
commit d3d60ab272

View file

@ -55,7 +55,6 @@
;;; Code:
(require 'map)
(require 'seq)
(require 'subr-x)
;; Parameters
@ -655,7 +654,7 @@ become JSON objects."
(defun json-encode-array (array)
"Return a JSON representation of ARRAY."
(if (and json-encoding-pretty-print
(not (seq-empty-p array)))
(/= 0 (length array)))
(concat
"["
(json--with-indentation