Skip to content

Commit e0cfae1

Browse files
committed
Remove unused field
1 parent 36adb51 commit e0cfae1

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/lceasy.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ int lcurl_easy_create(lua_State *L, int error_mode){
8383
p->multi = NULL;
8484
#if LCURL_CURL_VER_GE(7,56,0)
8585
p->mime = NULL;
86-
#endif
87-
#if LCURL_CURL_VER_GE(7,63,0)
88-
p->url = NULL;
8986
#endif
9087
p->storage = lcurl_storage_init(L);
9188
p->wr.cb_ref = p->wr.ud_ref = LUA_NOREF;
@@ -143,10 +140,6 @@ static int lcurl_easy_cleanup_storage(lua_State *L, lcurl_easy_t *p){
143140
p->mime = NULL;
144141
#endif
145142

146-
#if LCURL_CURL_VER_GE(7,63,0)
147-
p->url = NULL;
148-
#endif
149-
150143
luaL_unref(L, LCURL_LUA_REGISTRY, p->wr.cb_ref);
151144
luaL_unref(L, LCURL_LUA_REGISTRY, p->wr.ud_ref);
152145
luaL_unref(L, LCURL_LUA_REGISTRY, p->rd.cb_ref);
@@ -622,8 +615,6 @@ static int lcurl_easy_set_CURLU(lua_State *L) {
622615

623616
lcurl_storage_preserve_iv(L, p->storage, CURLOPT_CURLU, 2);
624617

625-
p->url = url;
626-
627618
lua_settop(L, 1);
628619
return 1;
629620
}
@@ -1031,8 +1022,6 @@ static int lcurl_easy_unset_CURLU(lua_State *L) {
10311022

10321023
lcurl_storage_remove_i(L, p->storage, CURLOPT_CURLU);
10331024

1034-
p->url = NULL;
1035-
10361025
lua_settop(L, 1);
10371026
return 1;
10381027
}

src/lceasy.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ typedef struct lcurl_easy_tag{
7575
lcurl_mime_t *mime;
7676
#endif
7777

78-
#if LCURL_CURL_VER_GE(7,63,0)
79-
lcurl_url_t *url;
80-
#endif
81-
8278
CURL *curl;
8379
int storage;
8480
int lists[LCURL_LIST_COUNT];

0 commit comments

Comments
 (0)