Skip to content

Commit

Permalink
uric: remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianfridrich committed May 2, 2023
1 parent b16222c commit 5c104b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions src/uri/uric.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,45 +120,6 @@ static bool is_param_unreserved(char c)
}


static bool is_token_non_alphanum(int c)
{
switch (c) {

case '-':
case '.':
case '!':
case '%':
case '*':
case '_':
case '+':
case '`':
case '\'':
case '~':
return true;
default:
return false;
}
}


static bool is_token(char c)
{
return isalnum((unsigned char)c) || is_token_non_alphanum(c);
}


static bool is_wsp(char c)
{
return c == ' ' || c == '\t';
}


static bool is_disp_name(char c)
{
return is_token((unsigned char)c) || is_wsp((unsigned char)c);
}


static bool is_paramchar(char c)
{
return is_param_unreserved(c) || is_unreserved(c);
Expand Down Expand Up @@ -344,16 +305,3 @@ int uri_header_unescape(struct re_printf *pf, const struct pl *pl)
return comp_unescape(pf, pl, is_hvalue);
}


/**
* Escape display name
*
* @param pf Print function
* @param pl String to escape
*
* @return 0 if success, otherwise errorcode
*/
int uri_display_name_escape(struct re_printf *pf, const struct pl *pl)
{
return comp_escape(pf, pl, is_disp_name);
}
Binary file removed vgcore.51007
Binary file not shown.

0 comments on commit 5c104b4

Please sign in to comment.