From baeb5901e6b2e57052fcb211307c6803bf856366 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Tue, 10 Sep 2019 08:47:31 -0700 Subject: [PATCH] Update CURL.hx --- src/lime/net/curl/CURL.hx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/lime/net/curl/CURL.hx b/src/lime/net/curl/CURL.hx index 4473a2574..16a68edca 100644 --- a/src/lime/net/curl/CURL.hx +++ b/src/lime/net/curl/CURL.hx @@ -166,12 +166,6 @@ class CURL case CURLOption.WRITEFUNCTION: var callback:CURL->Bytes->Int = cast parameter; - #if hl - parameter = function(bytes:Bytes):Int - { - return callback(this, bytes); - } - #else parameter = function(bytes:Bytes, length:Int):Int { var cacheLength = bytes.length; @@ -180,7 +174,6 @@ class CURL @:privateAccess bytes.length = cacheLength; return read; } - #end bytes = Bytes.alloc(0); // case CURLOption.READFUNCTION: