vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 8a720592cc7d3a4b62c254b7f0335da94d448864
parent c4f33698b73e8b3a65e9e16a1b16601e8239bf1f
Author: Christian Hesse <mail@eworm.de>
Date:   Mon, 22 Feb 2016 16:54:12 +0100

remove unused function cmd()

Diffstat:
Mmain.c | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/main.c b/main.c @@ -34,8 +34,6 @@ static const char *mark_set(Vis*, const char *keys, const Arg *arg); static const char *openline(Vis*, const char *keys, const Arg *arg); /* join lines from current cursor position to movement indicated by arg */ static const char *join(Vis*, const char *keys, const Arg *arg); -/* execute arg->s as if it was typed on command prompt */ -static const char *cmd(Vis*, const char *keys, const Arg *arg); /* perform last action i.e. action_prev again */ static const char *repeat(Vis*, const char *keys, const Arg *arg); /* replace character at cursor with one from keys */ @@ -1598,11 +1596,6 @@ static const char *insert_verbatim(Vis *vis, const char *keys, const Arg *arg) { return keys; } -static const char *cmd(Vis *vis, const char *keys, const Arg *arg) { - vis_cmd(vis, arg->s); - return keys; -} - static int argi2lines(Vis *vis, const Arg *arg) { int count = vis_count_get(vis); switch (arg->i) {