Remove redundant defmethod build-clause :returning

The `defhelper returning` that is immediately below it is all we needed.
This commit is contained in:
Erik Price 2015-02-25 09:15:17 -05:00
parent 403fb33fc4
commit 8841c2900f

View file

@ -37,11 +37,6 @@
(defhelper merge-from [m tables] (defhelper merge-from [m tables]
(update-in m [:from] concat (collify tables))) (update-in m [:from] concat (collify tables)))
(defmethod build-clause :returning [_ m columns]
(if (empty? columns)
m
(assoc m :returning columns)))
(defhelper returning [m columns] (defhelper returning [m columns]
(assoc m :returning (collify columns))) (assoc m :returning (collify columns)))