From 5b924ff91094a4e3360136442a0b92a2c9eb2b4f Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Mon, 28 Sep 2009 16:12:12 -0500 Subject: [PATCH] move images.http to extra so it can use images.viewer, fix load-http-image --- basis/images/http/http.factor | 7 ------- {basis => extra}/images/http/authors.txt | 0 extra/images/http/http.factor | 11 +++++++++++ 3 files changed, 11 insertions(+), 7 deletions(-) delete mode 100644 basis/images/http/http.factor rename {basis => extra}/images/http/authors.txt (100%) create mode 100644 extra/images/http/http.factor diff --git a/basis/images/http/http.factor b/basis/images/http/http.factor deleted file mode 100644 index 51f8b1ce55..0000000000 --- a/basis/images/http/http.factor +++ /dev/null @@ -1,7 +0,0 @@ -! Copyright (C) 2009 Doug Coleman. -! See http://factorcode.org/license.txt for BSD license. -USING: http.client images.loader images.loader.private kernel ; -IN: images.http - -: load-http-image ( path -- image ) - [ http-get nip ] [ image-class new ] bi load-image* ; diff --git a/basis/images/http/authors.txt b/extra/images/http/authors.txt similarity index 100% rename from basis/images/http/authors.txt rename to extra/images/http/authors.txt diff --git a/extra/images/http/http.factor b/extra/images/http/http.factor new file mode 100644 index 0000000000..620ab6f73b --- /dev/null +++ b/extra/images/http/http.factor @@ -0,0 +1,11 @@ +! Copyright (C) 2009 Doug Coleman. +! See http://factorcode.org/license.txt for BSD license. +USING: http.client images.loader images.loader.private kernel +images.viewer ; +IN: images.http + +: load-http-image ( path -- image ) + [ http-get nip ] [ image-class ] bi load-image* ; + +: http-image. ( path -- ) + load-http-image image. ;