summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli.c20
-rw-r--r--cli/src/cli.h2
2 files changed, 0 insertions, 22 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c
index 0e904a15e45..e577cee1dc5 100644
--- a/cli/src/cli.c
+++ b/cli/src/cli.c
@@ -634,26 +634,6 @@ out:
return ret;
}
-void
-cli_path_strip_trailing_slashes (char *path)
-{
- int i = 0;
- int len = 0;
-
- if (!path)
- return;
-
- len = strlen (path);
- for (i = len - 1; i > 0 ; i--) {
- if (path[i] != '/')
- break;
-
- }
-
- if (i < (len - 1))
- path[i + 1] = '\0';
-}
-
struct cli_state *global_state;
int
diff --git a/cli/src/cli.h b/cli/src/cli.h
index 8919390b1da..30e6d6513ed 100644
--- a/cli/src/cli.h
+++ b/cli/src/cli.h
@@ -234,8 +234,6 @@ cli_cmd_broadcast_connected ();
int
cli_rpc_notify (struct rpc_clnt *rpc, void *mydata, rpc_clnt_event_t event,
void *data);
-void
-cli_path_strip_trailing_slashes (char *path);
int
cli_canonicalize_path (char *path);