lib/curl: remove dep. en `pipeline`
authorJean Privat <jean@pryen.org>
Mon, 24 Mar 2014 17:44:47 +0000 (13:44 -0400)
committerJean Privat <jean@pryen.org>
Mon, 24 Mar 2014 17:44:55 +0000 (13:44 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/curl/curl_c.nit

index 5ac43c4..a8d4696 100644 (file)
@@ -17,8 +17,6 @@
 # Binding of C libCurl which allow us to interact with network.
 module curl_c is pkgconfig("libcurl")
 
-import pipeline
-
 in "C header" `{
        #include <stdio.h>
        #include <stdlib.h>
@@ -336,7 +334,11 @@ redef class Collection[E]
                        print "Collection item must be strings."
                end
                var primList = new CURLSList.with_str(self.first)
-               for s in self.skip_head(1) do primList.append(s)
+               var is_first = true
+               for s in self do
+                       if not is_first then primList.append(s)
+                       is_first = false
+               end
                return primList
        end
 end