Skip to content

Commit

Permalink
perf(util): remove unused util functions
Browse files Browse the repository at this point in the history
  • Loading branch information
aileot committed Nov 5, 2022
1 parent 1e68e02 commit 63f7acb
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions fnl/nvim-laurel/macros.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,6 @@
(when (nil? (. another k))
(tset another k v))))

(fn ->str? [x]
"Check if `x` will result in string at runtime."
(when (list? x)
(let [general-str-constructors [".."
:table.concat
:string.format
:tostring
:->str
:->string]]
(contains? general-str-constructors (first-symbol x)))))

;; cspell:word excmd

(fn excmd? [x]
"Check if `x` is Ex command."
(or (str? x) (->str? x)))

(lambda seq->kv-table [xs ?trues]
"Convert `xs` into a kv-table.
The value for `x` listed in `?trues` is set to `true`.
Expand Down

0 comments on commit 63f7acb

Please sign in to comment.