summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-07-08 09:54:27 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-07-08 09:58:44 +0900
commit06b1662807b117f4ecff4acda76bca808b3d2dff (patch)
tree1f911adcbc8d70926b381738c9f7d1b0a6f1b6a1 /mrbgems/mruby-bin-debugger
parentc572165292082c19154f7c8e85874b21108c6286 (diff)
downloadmruby-06b1662807b117f4ecff4acda76bca808b3d2dff.tar.gz
mruby-06b1662807b117f4ecff4acda76bca808b3d2dff.zip
mruby-bin-debugger: remove unused local variables.
Diffstat (limited to 'mrbgems/mruby-bin-debugger')
-rw-r--r--mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c2
-rw-r--r--mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c
index bd7b49036..451ac48bf 100644
--- a/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c
+++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c
@@ -205,7 +205,6 @@ mrb_debug_set_break_line(mrb_state *mrb, mrb_debug_context *dbg, const char *fil
int32_t index;
char* set_file;
uint16_t result;
- size_t len;
if ((mrb == NULL)||(dbg == NULL)||(file == NULL)) {
return MRB_DEBUG_INVALID_ARGUMENT;
@@ -228,7 +227,6 @@ mrb_debug_set_break_line(mrb_state *mrb, mrb_debug_context *dbg, const char *fil
return MRB_DEBUG_BREAK_INVALID_LINENO;
}
- len = strlen(file) + 1;
set_file = mrdb_strdup(mrb, file);
index = dbg->bpnum;
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
index 217558b5d..368ececcf 100644
--- a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
+++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
@@ -66,7 +66,6 @@ dirname(mrb_state *mrb, const char *path)
{
size_t len;
const char *p;
- char *dir;
if (path == NULL) {
return NULL;