remove unused variables
This commit is contained in:
parent
8ee11aaa6f
commit
adde7bc361
3 changed files with 4 additions and 7 deletions
|
@ -99,9 +99,9 @@ edge * r3_node_find_edge(const node * n, const char * pat);
|
|||
void r3_node_append_edge(node *n, edge *child);
|
||||
|
||||
|
||||
node * r3_tree_insert_pathl(node *tree, char *path, int path_len, void * data);
|
||||
node * r3_tree_insert_pathl(node *tree, const char *path, int path_len, void * data);
|
||||
|
||||
route * r3_tree_insert_routel(node *tree, int method, char *path, int path_len, void *data);
|
||||
route * r3_tree_insert_routel(node *tree, int method, const char *path, int path_len, void *data);
|
||||
|
||||
#define r3_tree_insert_path(n,p,d) r3_tree_insert_pathl_(n,p,strlen(p), NULL, d)
|
||||
|
||||
|
|
|
@ -452,7 +452,7 @@ route * r3_route_createl(const char * path, int path_len) {
|
|||
}
|
||||
|
||||
|
||||
route * r3_tree_insert_routel(node *tree, int method, char *path, int path_len, void *data) {
|
||||
route * r3_tree_insert_routel(node *tree, int method, const char *path, int path_len, void *data) {
|
||||
route *r = r3_route_createl(path, path_len);
|
||||
if(!r)
|
||||
return NULL;
|
||||
|
@ -463,7 +463,7 @@ route * r3_tree_insert_routel(node *tree, int method, char *path, int path_len,
|
|||
|
||||
|
||||
|
||||
node * r3_tree_insert_pathl(node *tree, char *path, int path_len, void * data)
|
||||
node * r3_tree_insert_pathl(node *tree, const char *path, int path_len, void * data)
|
||||
{
|
||||
return r3_tree_insert_pathl_(tree, path, path_len, NULL , data);
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
unsigned long unixtime() {
|
||||
struct timeval tp;
|
||||
long sec = 0L;
|
||||
if (gettimeofday((struct timeval *) &tp, (NUL)) == 0) {
|
||||
return tp.tv_sec;
|
||||
}
|
||||
|
@ -31,8 +30,6 @@ double microtime() {
|
|||
struct timeval tp;
|
||||
long sec = 0L;
|
||||
double msec = 0.0;
|
||||
char ret[100];
|
||||
|
||||
if (gettimeofday((struct timeval *) &tp, (NUL)) == 0) {
|
||||
msec = (double) (tp.tv_usec / MICRO_IN_SEC);
|
||||
sec = tp.tv_sec;
|
||||
|
|
Loading…
Reference in a new issue