Skip to content

Commit

Permalink
Removed some deprecated curl modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfriend99 committed Feb 23, 2024
1 parent 3c2e4fe commit 2619220
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 233 deletions.
28 changes: 0 additions & 28 deletions packages/curl/curl.c
Expand Up @@ -40,22 +40,15 @@ static int CurlInfoTypes[58] = {
CURLINFO_NAMELOOKUP_TIME,
CURLINFO_CONNECT_TIME,
CURLINFO_PRETRANSFER_TIME,
CURLINFO_SIZE_UPLOAD,
CURLINFO_SIZE_UPLOAD_T,
CURLINFO_SIZE_DOWNLOAD,
CURLINFO_SIZE_DOWNLOAD_T,
CURLINFO_SPEED_DOWNLOAD,
CURLINFO_SPEED_DOWNLOAD_T,
CURLINFO_SPEED_UPLOAD,
CURLINFO_SPEED_UPLOAD_T,
CURLINFO_HEADER_SIZE,
CURLINFO_REQUEST_SIZE,
CURLINFO_SSL_VERIFYRESULT,
CURLINFO_FILETIME,
CURLINFO_FILETIME_T,
CURLINFO_CONTENT_LENGTH_DOWNLOAD,
CURLINFO_CONTENT_LENGTH_DOWNLOAD_T,
CURLINFO_CONTENT_LENGTH_UPLOAD,
CURLINFO_CONTENT_LENGTH_UPLOAD_T,
CURLINFO_STARTTRANSFER_TIME,
CURLINFO_CONTENT_TYPE,
Expand Down Expand Up @@ -103,22 +96,15 @@ struct CURLInfoTypeMap {
[CURLINFO_NAMELOOKUP_TIME] = { CURLINFO_DOUBLE },
[CURLINFO_CONNECT_TIME] = { CURLINFO_DOUBLE },
[CURLINFO_PRETRANSFER_TIME] = { CURLINFO_DOUBLE },
[CURLINFO_SIZE_UPLOAD] = { CURLINFO_DOUBLE },
[CURLINFO_SIZE_UPLOAD_T] = { CURLINFO_OFF_T },
[CURLINFO_SIZE_DOWNLOAD] = { CURLINFO_DOUBLE },
[CURLINFO_SIZE_DOWNLOAD_T] = { CURLINFO_OFF_T },
[CURLINFO_SPEED_DOWNLOAD] = { CURLINFO_DOUBLE },
[CURLINFO_SPEED_DOWNLOAD_T] = { CURLINFO_OFF_T },
[CURLINFO_SPEED_UPLOAD] = { CURLINFO_DOUBLE },
[CURLINFO_SPEED_UPLOAD_T] = { CURLINFO_OFF_T },
[CURLINFO_HEADER_SIZE] = { CURLINFO_LONG },
[CURLINFO_REQUEST_SIZE] = { CURLINFO_LONG },
[CURLINFO_SSL_VERIFYRESULT] = { CURLINFO_LONG },
[CURLINFO_FILETIME] = { CURLINFO_LONG },
[CURLINFO_FILETIME_T] = { CURLINFO_OFF_T },
[CURLINFO_CONTENT_LENGTH_DOWNLOAD] = { CURLINFO_DOUBLE },
[CURLINFO_CONTENT_LENGTH_DOWNLOAD_T] = { CURLINFO_OFF_T },
[CURLINFO_CONTENT_LENGTH_UPLOAD] = { CURLINFO_DOUBLE },
[CURLINFO_CONTENT_LENGTH_UPLOAD_T] = { CURLINFO_OFF_T },
[CURLINFO_STARTTRANSFER_TIME] = { CURLINFO_DOUBLE },
[CURLINFO_CONTENT_TYPE] = { CURLINFO_STRING },
Expand Down Expand Up @@ -408,22 +394,15 @@ DEFINE_CURL_CONSTANT(CURLINFO_TOTAL_TIME)
DEFINE_CURL_CONSTANT(CURLINFO_NAMELOOKUP_TIME)
DEFINE_CURL_CONSTANT(CURLINFO_CONNECT_TIME)
DEFINE_CURL_CONSTANT(CURLINFO_PRETRANSFER_TIME)
DEFINE_CURL_CONSTANT(CURLINFO_SIZE_UPLOAD)
DEFINE_CURL_CONSTANT(CURLINFO_SIZE_UPLOAD_T)
DEFINE_CURL_CONSTANT(CURLINFO_SIZE_DOWNLOAD)
DEFINE_CURL_CONSTANT(CURLINFO_SIZE_DOWNLOAD_T)
DEFINE_CURL_CONSTANT(CURLINFO_SPEED_DOWNLOAD)
DEFINE_CURL_CONSTANT(CURLINFO_SPEED_DOWNLOAD_T)
DEFINE_CURL_CONSTANT(CURLINFO_SPEED_UPLOAD)
DEFINE_CURL_CONSTANT(CURLINFO_SPEED_UPLOAD_T)
DEFINE_CURL_CONSTANT(CURLINFO_HEADER_SIZE)
DEFINE_CURL_CONSTANT(CURLINFO_REQUEST_SIZE)
DEFINE_CURL_CONSTANT(CURLINFO_SSL_VERIFYRESULT)
DEFINE_CURL_CONSTANT(CURLINFO_FILETIME)
DEFINE_CURL_CONSTANT(CURLINFO_FILETIME_T)
DEFINE_CURL_CONSTANT(CURLINFO_CONTENT_LENGTH_DOWNLOAD)
DEFINE_CURL_CONSTANT(CURLINFO_CONTENT_LENGTH_DOWNLOAD_T)
DEFINE_CURL_CONSTANT(CURLINFO_CONTENT_LENGTH_UPLOAD)
DEFINE_CURL_CONSTANT(CURLINFO_CONTENT_LENGTH_UPLOAD_T)
DEFINE_CURL_CONSTANT(CURLINFO_STARTTRANSFER_TIME)
DEFINE_CURL_CONSTANT(CURLINFO_CONTENT_TYPE)
Expand Down Expand Up @@ -1240,22 +1219,15 @@ CREATE_MODULE_LOADER(curl) {
GET_CURL_CONSTANT(CURLINFO_NAMELOOKUP_TIME),
GET_CURL_CONSTANT(CURLINFO_CONNECT_TIME),
GET_CURL_CONSTANT(CURLINFO_PRETRANSFER_TIME),
GET_CURL_CONSTANT(CURLINFO_SIZE_UPLOAD),
GET_CURL_CONSTANT(CURLINFO_SIZE_UPLOAD_T),
GET_CURL_CONSTANT(CURLINFO_SIZE_DOWNLOAD),
GET_CURL_CONSTANT(CURLINFO_SIZE_DOWNLOAD_T),
GET_CURL_CONSTANT(CURLINFO_SPEED_DOWNLOAD),
GET_CURL_CONSTANT(CURLINFO_SPEED_DOWNLOAD_T),
GET_CURL_CONSTANT(CURLINFO_SPEED_UPLOAD),
GET_CURL_CONSTANT(CURLINFO_SPEED_UPLOAD_T),
GET_CURL_CONSTANT(CURLINFO_HEADER_SIZE),
GET_CURL_CONSTANT(CURLINFO_REQUEST_SIZE),
GET_CURL_CONSTANT(CURLINFO_SSL_VERIFYRESULT),
GET_CURL_CONSTANT(CURLINFO_FILETIME),
GET_CURL_CONSTANT(CURLINFO_FILETIME_T),
GET_CURL_CONSTANT(CURLINFO_CONTENT_LENGTH_DOWNLOAD),
GET_CURL_CONSTANT(CURLINFO_CONTENT_LENGTH_DOWNLOAD_T),
GET_CURL_CONSTANT(CURLINFO_CONTENT_LENGTH_UPLOAD),
GET_CURL_CONSTANT(CURLINFO_CONTENT_LENGTH_UPLOAD_T),
GET_CURL_CONSTANT(CURLINFO_STARTTRANSFER_TIME),
GET_CURL_CONSTANT(CURLINFO_CONTENT_TYPE),
Expand Down
78 changes: 7 additions & 71 deletions packages/curl/curl/infos.b
Expand Up @@ -58,65 +58,34 @@ class Info {
*/
static var PRETRANSFER_TIME = _curl.CURLINFO_PRETRANSFER_TIME

/**
* The total amount of bytes that were uploaded.
* @static
* @note `SIZE_UPLOAD_T` might return a more sensible data.
*/
static var SIZE_UPLOAD = _curl.CURLINFO_SIZE_UPLOAD

/**
* The total amount of bytes that were uploaded.
* @static
*/
static var SIZE_UPLOAD_T = _curl.CURLINFO_SIZE_UPLOAD_T
static var SIZE_UPLOAD = _curl.CURLINFO_SIZE_UPLOAD_T

/**
* The total amount of bytes that were downloaded. The amount is only for the
* latest transfer and will be reset again for each new transfer. This counts actual
* payload data, what's also commonly called body. All meta and header data are
* excluded and will not be counted in this number.
* @static
* @note `SIZE_DOWNLOAD_T` might return a more sensible data.
*/
static var SIZE_DOWNLOAD = _curl.CURLINFO_SIZE_DOWNLOAD

/**
* The total amount of bytes that were downloaded. The amount is only for the
* latest transfer and will be reset again for each new transfer. This counts actual
* payload data, what's also commonly called body. All meta and header data are
* excluded and will not be counted in this number.
*/
static var SIZE_DOWNLOAD_T = _curl.CURLINFO_SIZE_DOWNLOAD_T
static var SIZE_DOWNLOAD = _curl.CURLINFO_SIZE_DOWNLOAD_T

/**
* The average download speed that curl measured for the complete download. Measured
* in bytes/second.
* @static
* @note `SPEED_DOWNLOAD_T` might return a more sensible data.
*/
static var SPEED_DOWNLOAD = _curl.CURLINFO_SPEED_DOWNLOAD

/**
* The average download speed that curl measured for the complete download. Measured
* in bytes/second.
*/
static var SPEED_DOWNLOAD_T = _curl.CURLINFO_SPEED_DOWNLOAD_T
static var SPEED_DOWNLOAD = _curl.CURLINFO_SPEED_DOWNLOAD_T

/**
* The average upload speed that curl measured for the complete upload. Measured
* in bytes/second.
* @static
* @note `CURLINFO_SPEED_UPLOAD_T` might return a more sensible data.
*/
static var SPEED_UPLOAD = _curl.CURLINFO_SPEED_UPLOAD

/**
* The average upload speed that curl measured for the complete upload. Measured
* in bytes/second.
* @static
*/
static var SPEED_UPLOAD_T = _curl.CURLINFO_SPEED_UPLOAD_T
static var SPEED_UPLOAD = _curl.CURLINFO_SPEED_UPLOAD_T

/**
* The total size of all the headers received. Measured in number of bytes.
Expand Down Expand Up @@ -148,54 +117,21 @@ class Info {
* You _MUST_ to collect this information before the transfer is made, by using the
* `Options.FILETIME` option to `set_option()` or you will unconditionally get a -1 back.
* @static
*
* > Consider using `FILETIME_T` to be able to extract dates beyond the year 2038 on
* > systems using 32 bit longs.
*/
static var FILETIME = _curl.CURLINFO_FILETIME

/**
* The remote time of the retrieved document (in number of seconds since 1 jan 1970
* in the GMT/UTC time zone). If you get -1, it can be because of many reasons (it might
* be unknown, the server might hide it or the server doesn't support the command that
* tells document time etc) and the time of the document is unknown.
*
* You _MUST_ to collect this information before the transfer is made, by using the
* `Options.FILETIME` option to `set_option()` or you will unconditionally get a -1 back.
* @static
*
* > This option is an alternative to `FILETIME` to allow systems with 32 bit long
* > variables to extract dates outside of the 32bit timestamp range.
*/
static var FILETIME_T = _curl.CURLINFO_FILETIME_T
static var FILETIME = _curl.CURLINFO_FILETIME_T

/**
* The content-length of the download. This is the value read from the `Content-Length:`
* field. It is -1 if the size isn't known.
* @static
* @note `CONTENT_LENGTH_DOWNLOAD_T` might return a more sensible data.
*/
static var CONTENT_LENGTH_DOWNLOAD = _curl.CURLINFO_CONTENT_LENGTH_DOWNLOAD

/**
* The content-length of the download. This is the value read from the `Content-Length:`
* field. It is -1 if the size isn't known.
* @static
*/
static var CONTENT_LENGTH_DOWNLOAD_T = _curl.CURLINFO_CONTENT_LENGTH_DOWNLOAD_T

/**
* The content-length of the upload. It is -1 if the size isn't known.
* @static
* @note `CONTENT_LENGTH_UPLOAD_T` might return a more sensible data.
*/
static var CONTENT_LENGTH_UPLOAD = _curl.CURLINFO_CONTENT_LENGTH_UPLOAD
static var CONTENT_LENGTH_DOWNLOAD = _curl.CURLINFO_CONTENT_LENGTH_DOWNLOAD_T

/**
* The content-length of the upload. It is -1 if the size isn't known.
* @static
*/
static var CONTENT_LENGTH_UPLOAD_T = _curl.CURLINFO_CONTENT_LENGTH_UPLOAD_T
static var CONTENT_LENGTH_UPLOAD = _curl.CURLINFO_CONTENT_LENGTH_UPLOAD_T

/**
* The time, in seconds, it took from the start until the first byte is received by
Expand Down
65 changes: 0 additions & 65 deletions scripts/autoinstall-linux.sh

This file was deleted.

69 changes: 0 additions & 69 deletions scripts/autoinstall-osx.sh

This file was deleted.

4 changes: 4 additions & 0 deletions scripts/install.sh
Expand Up @@ -129,6 +129,10 @@ install_blade() {

# Now link the blade executable to path
echo "Linking Blade..."

if [[ -f "$1/blade/blade" ]]; then
sudo rm -rf "$1/blade/blade"
fi
sudo ln -s "$1/blade/blade" /usr/local/bin/blade
}

Expand Down

0 comments on commit 2619220

Please sign in to comment.