branch: externals/svg-lib commit d9a49ac696c6ae68b59a1a8bbfbd72b6faa8d8cd Author: Damon Chan <damon.c...@freshup.com.hk> Commit: Damon Chan <damon.c...@freshup.com.hk>
Delete the redundant url checking --- svg-lib.el | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/svg-lib.el b/svg-lib.el index 8b9550c..7a06071 100644 --- a/svg-lib.el +++ b/svg-lib.el @@ -306,17 +306,9 @@ and style elements ARGS." "Retrieve icon NAME from COLLECTION. Cached version is returned if it exists unless FORCE-RELOAD is t." - + ;; Build url from collection and name without checking for error (let ((url (format (cdr (assoc collection svg-lib-icon-collections)) name))) - - ;; Get data only if not cached or if explicitely requested - (if (or force-reload (not (url-is-cached url))) - (let ((url-automatic-caching t) - (filename (url-cache-create-filename url))) - (with-current-buffer (url-retrieve-synchronously url) - (write-region (point-min) (point-max) filename)))) - ;; Get data from cache (let ((buffer (if (or force-reload (not (url-is-cached url))) (let ((url-automatic-caching t)