comparison mod_http_oauth2/mod_http_oauth2.lua @ 6296:3f0970babd67

mod_http_oauth2: Remove unused function Leftover from something
author Kim Alvefur <zash@zash.se>
date Tue, 15 Jul 2025 21:56:56 +0200
parents c96bd4156664
children 7fe484e7b574
comparison
equal deleted inserted replaced
6295:c96bd4156664 6296:3f0970babd67
36 if haystack[i] == needle then 36 if haystack[i] == needle then
37 return true 37 return true
38 end 38 end
39 end 39 end
40 return false 40 return false
41 end
42
43 local function array_filter(haystack)
44 return function (needle)
45 return array_contains(haystack, needle);
46 end
47 end 41 end
48 42
49 local function strict_url_parse(urlstr) 43 local function strict_url_parse(urlstr)
50 local url_parts = url.parse(urlstr); 44 local url_parts = url.parse(urlstr);
51 if not url_parts then return url_parts; end 45 if not url_parts then return url_parts; end