Skip to content

Commit 7c076ee

Browse files
committed
Remove unused variables
1 parent f64b2c8 commit 7c076ee

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

qjsc.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ static void check_hasarg(int optind, int argc, int opt)
395395
int main(int argc, char **argv)
396396
{
397397
int optind = 1;
398-
int i, verbose;
398+
int i;
399399
const char *out_filename, *cname, *script_name;
400400
char cfilename[1024];
401401
FILE *fo;
@@ -410,7 +410,6 @@ int main(int argc, char **argv)
410410
output_type = OUTPUT_C;
411411
cname = NULL;
412412
module = -1;
413-
verbose = 0;
414413
strip = 0;
415414
stack_size = 0;
416415
memset(&dynamic_module_list, 0, sizeof(dynamic_module_list));
@@ -524,10 +523,6 @@ int main(int argc, char **argv)
524523
strip++;
525524
continue;
526525
}
527-
if (opt == 'v') {
528-
verbose++;
529-
continue;
530-
}
531526
if (opt == 'p') {
532527
if (!optarg) {
533528
check_hasarg(optind, argc, opt);

quickjs.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7492,9 +7492,8 @@ static JSValue JS_GetPropertyInternal(JSContext *ctx, JSValueConst obj,
74927492
JSObject *p;
74937493
JSProperty *pr;
74947494
JSShapeProperty *prs;
7495-
uint32_t tag, proto_depth;
7495+
uint32_t tag;
74967496

7497-
proto_depth = 0;
74987497
tag = JS_VALUE_GET_TAG(obj);
74997498
if (unlikely(tag != JS_TAG_OBJECT)) {
75007499
switch(tag) {
@@ -7616,7 +7615,6 @@ static JSValue JS_GetPropertyInternal(JSContext *ctx, JSValueConst obj,
76167615
}
76177616
}
76187617
}
7619-
proto_depth++;
76207618
p = p->shape->proto;
76217619
if (!p)
76227620
break;

0 commit comments

Comments
 (0)