From 8d0b90f6e1596e168fe8ebcd4ef53f211f0e3b38 Mon Sep 17 00:00:00 2001 From: Martijn Otto Date: Wed, 21 Feb 2018 09:14:31 +0100 Subject: [PATCH] Remove unused variables --- src/node.c | 1 - src/str.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/node.c b/src/node.c index c966d5c..1a0a129 100644 --- a/src/node.c +++ b/src/node.c @@ -697,7 +697,6 @@ R3Node * r3_tree_insert_pathl_ex(R3Node *tree, const char *path, unsigned int pa // insert the first one edge, and break at "p" R3Node * child = r3_tree_create(3); - unsigned int paln = p - path; r3_node_connectl(n, path, p - path, 0, child); // no duplicate // and insert the rest part to the child diff --git a/src/str.c b/src/str.c index 51e92f9..3e0c576 100644 --- a/src/str.c +++ b/src/str.c @@ -155,7 +155,6 @@ const char * r3_slug_find_pattern(const char *s1, unsigned int str_len, unsigned const char * r3_slug_find_name(const char *s1, unsigned int str_len, unsigned int *len) { const char * c; const char * s2; - int cnt = 0; unsigned int plholder; if ((c = r3_slug_find_placeholder(s1, str_len, &plholder))) { c++;