From 5512777404617ed34a2e0343985f949ae4b554c2 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sat, 11 Mar 2023 16:29:56 +0100 Subject: [PATCH] Remove deprecated option --render-expired-frames This option did nothing since it was deprecated. Totally remove it. --- app/src/cli.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/app/src/cli.c b/app/src/cli.c index 8a0b6aa4..fc5f0a2f 100644 --- a/app/src/cli.c +++ b/app/src/cli.c @@ -18,8 +18,7 @@ #define STR(x) STR_IMPL_(x) enum { - OPT_RENDER_EXPIRED_FRAMES = 1000, - OPT_BIT_RATE, + OPT_BIT_RATE = 1000, OPT_WINDOW_TITLE, OPT_PUSH_TARGET, OPT_ALWAYS_ON_TOP, @@ -471,11 +470,6 @@ static const struct sc_option options[] = { "\"opengles2\", \"opengles\", \"metal\" and \"software\".\n" "", }, - { - // deprecated - .longopt_id = OPT_RENDER_EXPIRED_FRAMES, - .longopt = "render-expired-frames", - }, { .longopt_id = OPT_REQUIRE_AUDIO, .longopt = "require-audio", @@ -1660,10 +1654,6 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[], case 'w': opts->stay_awake = true; break; - case OPT_RENDER_EXPIRED_FRAMES: - LOGW("Option --render-expired-frames has been removed. This " - "flag has been ignored."); - break; case OPT_WINDOW_TITLE: opts->window_title = optarg; break;