Skip to content

Commit

Permalink
Revert "Add support and tests for URLComponents.percentEncodedQueryIt…
Browse files Browse the repository at this point in the history
…ems"
  • Loading branch information
aschwaighofer authored Dec 4, 2020
1 parent abdc0e1 commit d7957de
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 357 deletions.
6 changes: 2 additions & 4 deletions CoreFoundation/URL.subproj/CFURLComponents.c
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ static CFArrayRef _CFURLComponentsCopyQueryItemsInternal(CFURLComponentsRef comp
}
}
else {
nameString = CFRetain(CFSTR(""));
nameString = CFSTR("");
}
CFTypeRef keys[] = {_kCFURLComponentsNameKey};
CFTypeRef values[] = {nameString};
Expand Down Expand Up @@ -1343,7 +1343,7 @@ static CFArrayRef _CFURLComponentsCopyQueryItemsInternal(CFURLComponentsRef comp
}
}
else {
nameString = CFRetain(CFSTR(""));
nameString = CFSTR("");
}
CFTypeRef keys[] = {_kCFURLComponentsNameKey};
CFTypeRef values[] = {nameString};
Expand Down Expand Up @@ -1464,8 +1464,6 @@ static Boolean _CFURLComponentsSetQueryItemsInternal(CFURLComponentsRef componen
return ( result );
}



CF_EXPORT void _CFURLComponentsSetQueryItems(CFURLComponentsRef components, CFArrayRef names, CFArrayRef values ) {
(void)_CFURLComponentsSetQueryItemsInternal(components, names, values, true); // _CFURLComponentsSetQueryItemsInternal cannot fail if addPercentEncoding is true
}
Expand Down
Loading

0 comments on commit d7957de

Please sign in to comment.