Remove deprecated option --render-expired-frames

This option did nothing since it was deprecated. Totally remove it.
pull/3774/head
Romain Vimont 1 year ago
parent cc07f8dac4
commit 5512777404

@ -18,8 +18,7 @@
#define STR(x) STR_IMPL_(x) #define STR(x) STR_IMPL_(x)
enum { enum {
OPT_RENDER_EXPIRED_FRAMES = 1000, OPT_BIT_RATE = 1000,
OPT_BIT_RATE,
OPT_WINDOW_TITLE, OPT_WINDOW_TITLE,
OPT_PUSH_TARGET, OPT_PUSH_TARGET,
OPT_ALWAYS_ON_TOP, OPT_ALWAYS_ON_TOP,
@ -471,11 +470,6 @@ static const struct sc_option options[] = {
"\"opengles2\", \"opengles\", \"metal\" and \"software\".\n" "\"opengles2\", \"opengles\", \"metal\" and \"software\".\n"
"<https://wiki.libsdl.org/SDL_HINT_RENDER_DRIVER>", "<https://wiki.libsdl.org/SDL_HINT_RENDER_DRIVER>",
}, },
{
// deprecated
.longopt_id = OPT_RENDER_EXPIRED_FRAMES,
.longopt = "render-expired-frames",
},
{ {
.longopt_id = OPT_REQUIRE_AUDIO, .longopt_id = OPT_REQUIRE_AUDIO,
.longopt = "require-audio", .longopt = "require-audio",
@ -1660,10 +1654,6 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
case 'w': case 'w':
opts->stay_awake = true; opts->stay_awake = true;
break; break;
case OPT_RENDER_EXPIRED_FRAMES:
LOGW("Option --render-expired-frames has been removed. This "
"flag has been ignored.");
break;
case OPT_WINDOW_TITLE: case OPT_WINDOW_TITLE:
opts->window_title = optarg; opts->window_title = optarg;
break; break;

Loading…
Cancel
Save