aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-03-12 14:10:36 +0000
committerOmar Polo <op@omarpolo.com>2024-03-12 14:10:36 +0000
commit8aba5d8b210a17b49cfc8f02b12fd7b62c228fb3 (patch)
treec1b6ee01ba4181047a59eb401671193b4fe08fb1 /parse.y
parent7c83689428d30bf646bea610ca4ee04aded74024 (diff)
remove dead code
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y31
1 files changed, 0 insertions, 31 deletions
diff --git a/parse.y b/parse.y
index a570543..577af2f 100644
--- a/parse.y
+++ b/parse.y
@@ -92,11 +92,9 @@ char *ensure_absolute_path(char*);
int check_block_code(int);
char *check_block_fmt(char*);
int check_strip_no(int);
-int check_port_num(int);
int check_prefork_num(int);
void advance_loc(void);
void advance_proxy(void);
-void parsehp(char *, char **, const char **, const char *);
int fastcgi_conf(const char *, const char *);
void add_param(char *, char *);
int getservice(const char *);
@@ -1204,16 +1202,6 @@ check_strip_no(int n)
}
int
-check_port_num(int n)
-{
- if (n <= 0 || n >= UINT16_MAX)
- yyerror("port number is %s: %d",
- n <= 0 ? "too small" : "too large",
- n);
- return n;
-}
-
-int
check_prefork_num(int n)
{
if (n <= 0 || n >= PROC_MAX_INSTANCES)
@@ -1235,25 +1223,6 @@ advance_proxy(void)
TAILQ_INSERT_TAIL(&host->proxies, proxy, proxies);
}
-void
-parsehp(char *str, char **host, const char **port, const char *def)
-{
- char *at;
- const char *errstr;
-
- *host = str;
-
- if ((at = strchr(str, ':')) != NULL) {
- *at++ = '\0';
- *port = at;
- } else
- *port = def;
-
- strtonum(*port, 1, UINT16_MAX, &errstr);
- if (errstr != NULL)
- yyerror("port is %s: %s", errstr, *port);
-}
-
int
fastcgi_conf(const char *path, const char *port)
{