From 2e29c93ac36150203f99d261c48d3fea126673d5 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Tue, 26 Sep 2006 01:25:52 +0000 Subject: [PATCH] remove ancient deprecated things --- doc/html/changelog.html | 12 ++++++++++++ include/FLAC/stream_encoder.h | 3 --- src/libFLAC/stream_encoder.c | 1 - src/metaflac/options.c | 40 ++++++++-------------------------------- 4 files changed, 20 insertions(+), 36 deletions(-) diff --git a/doc/html/changelog.html b/doc/html/changelog.html index f7061fb..22947d5 100644 --- a/doc/html/changelog.html +++ b/doc/html/changelog.html @@ -110,6 +110,18 @@
  • Added shorthand operation --remove-replay-gain for removing ReplayGain tags.
  • --export-cuesheet-to now properly specifies the FLAC file name (SF #1272825).
  • Importing of non-CDDA-compliant cuesheets now issues a warning.
  • +
  • Removed the following deprecated tag editing options; you should use the new option names shown instead: + +
  • diff --git a/include/FLAC/stream_encoder.h b/include/FLAC/stream_encoder.h index 20d7375..6ccd263 100644 --- a/include/FLAC/stream_encoder.h +++ b/include/FLAC/stream_encoder.h @@ -295,9 +295,6 @@ typedef enum { FLAC__STREAM_ENCODER_INIT_STATUS_MID_SIDE_CHANNELS_MISMATCH, /**< Mid/side coding was specified but the number of channels is not equal to 2. */ - FLAC__STREAM_ENCODER_INIT_STATUS_MID_SIDE_SAMPLE_SIZE_MISMATCH, - /**< Deprecated. */ - FLAC__STREAM_ENCODER_INIT_STATUS_ILLEGAL_MID_SIDE_FORCE, /**< Loose mid/side coding was specified but mid/side coding was not. */ diff --git a/src/libFLAC/stream_encoder.c b/src/libFLAC/stream_encoder.c index 6cc7f5b..50d792f 100644 --- a/src/libFLAC/stream_encoder.c +++ b/src/libFLAC/stream_encoder.c @@ -489,7 +489,6 @@ FLAC_API const char * const FLAC__StreamEncoderInitStatusString[] = { "FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_MAX_LPC_ORDER", "FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_QLP_COEFF_PRECISION", "FLAC__STREAM_ENCODER_INIT_STATUS_MID_SIDE_CHANNELS_MISMATCH", - "FLAC__STREAM_ENCODER_INIT_STATUS_MID_SIDE_SAMPLE_SIZE_MISMATCH", "FLAC__STREAM_ENCODER_INIT_STATUS_ILLEGAL_MID_SIDE_FORCE", "FLAC__STREAM_ENCODER_INIT_STATUS_BLOCK_SIZE_TOO_SMALL_FOR_LPC_ORDER", "FLAC__STREAM_ENCODER_INIT_STATUS_NOT_STREAMABLE", diff --git a/src/metaflac/options.c b/src/metaflac/options.c index d24fbec..6d42599 100644 --- a/src/metaflac/options.c +++ b/src/metaflac/options.c @@ -70,14 +70,6 @@ struct share__option long_options_[] = { { "set-tag-from-file", 1, 0, 0 }, { "import-tags-from", 1, 0, 0 }, { "export-tags-to", 1, 0, 0 }, - { "show-vc-vendor", 0, 0, 0 }, /* deprecated */ - { "show-vc-field", 1, 0, 0 }, /* deprecated */ - { "remove-vc-all", 0, 0, 0 }, /* deprecated */ - { "remove-vc-field", 1, 0, 0 }, /* deprecated */ - { "remove-vc-firstfield", 1, 0, 0 }, /* deprecated */ - { "set-vc-field", 1, 0, 0 }, /* deprecated */ - { "import-vc-from", 1, 0, 0 }, /* deprecated */ - { "export-vc-to", 1, 0, 0 }, /* deprecated */ { "import-cuesheet-from", 1, 0, 0 }, { "export-cuesheet-to", 1, 0, 0 }, { "import-picture", 1, 0, 0 }, @@ -461,15 +453,11 @@ FLAC__bool parse_option(int option_index, const char *option_argument, CommandLi else undocumented_warning(opt); } - else if(0 == strcmp(opt, "show-vendor-tag") || 0 == strcmp(opt, "show-vc-vendor")) { - if(0 == strcmp(opt, "show-vc-vendor")) - fprintf(stderr, "WARNING: --%s is deprecated, the new name is --show-vendor-tag\n", opt); + else if(0 == strcmp(opt, "show-vendor-tag")) { (void) append_shorthand_operation(options, OP__SHOW_VC_VENDOR); } - else if(0 == strcmp(opt, "show-tag") || 0 == strcmp(opt, "show-vc-field")) { + else if(0 == strcmp(opt, "show-tag")) { const char *violation; - if(0 == strcmp(opt, "show-vc-field")) - fprintf(stderr, "WARNING: --%s is deprecated, the new name is --show-tag\n", opt); op = append_shorthand_operation(options, OP__SHOW_VC_FIELD); FLAC__ASSERT(0 != option_argument); if(!parse_vorbis_comment_field_name(option_argument, &(op->argument.vc_field_name.value), &violation)) { @@ -478,15 +466,11 @@ FLAC__bool parse_option(int option_index, const char *option_argument, CommandLi ok = false; } } - else if(0 == strcmp(opt, "remove-all-tags") || 0 == strcmp(opt, "remove-vc-all")) { - if(0 == strcmp(opt, "remove-vc-all")) - fprintf(stderr, "WARNING: --%s is deprecated, the new name is --remove-all-tags\n", opt); + else if(0 == strcmp(opt, "remove-all-tags")) { (void) append_shorthand_operation(options, OP__REMOVE_VC_ALL); } - else if(0 == strcmp(opt, "remove-tag") || 0 == strcmp(opt, "remove-vc-field")) { + else if(0 == strcmp(opt, "remove-tag")) { const char *violation; - if(0 == strcmp(opt, "remove-vc-field")) - fprintf(stderr, "WARNING: --%s is deprecated, the new name is --remove-tag\n", opt); op = append_shorthand_operation(options, OP__REMOVE_VC_FIELD); FLAC__ASSERT(0 != option_argument); if(!parse_vorbis_comment_field_name(option_argument, &(op->argument.vc_field_name.value), &violation)) { @@ -495,10 +479,8 @@ FLAC__bool parse_option(int option_index, const char *option_argument, CommandLi ok = false; } } - else if(0 == strcmp(opt, "remove-first-tag") || 0 == strcmp(opt, "remove-vc-firstfield")) { + else if(0 == strcmp(opt, "remove-first-tag")) { const char *violation; - if(0 == strcmp(opt, "remove-vc-firstfield")) - fprintf(stderr, "WARNING: --%s is deprecated, the new name is --remove-first-tag\n", opt); op = append_shorthand_operation(options, OP__REMOVE_VC_FIRSTFIELD); FLAC__ASSERT(0 != option_argument); if(!parse_vorbis_comment_field_name(option_argument, &(op->argument.vc_field_name.value), &violation)) { @@ -507,10 +489,8 @@ FLAC__bool parse_option(int option_index, const char *option_argument, CommandLi ok = false; } } - else if(0 == strcmp(opt, "set-tag") || 0 == strcmp(opt, "set-vc-field")) { + else if(0 == strcmp(opt, "set-tag")) { const char *violation; - if(0 == strcmp(opt, "set-vc-field")) - fprintf(stderr, "WARNING: --%s is deprecated, the new name is --set-tag\n", opt); op = append_shorthand_operation(options, OP__SET_VC_FIELD); FLAC__ASSERT(0 != option_argument); op->argument.vc_field.field_value_from_file = false; @@ -531,9 +511,7 @@ FLAC__bool parse_option(int option_index, const char *option_argument, CommandLi ok = false; } } - else if(0 == strcmp(opt, "import-tags-from") || 0 == strcmp(opt, "import-vc-from")) { - if(0 == strcmp(opt, "import-vc-from")) - fprintf(stderr, "WARNING: --%s is deprecated, the new name is --import-tags-from\n", opt); + else if(0 == strcmp(opt, "import-tags-from")) { op = append_shorthand_operation(options, OP__IMPORT_VC_FROM); FLAC__ASSERT(0 != option_argument); if(!parse_string(option_argument, &(op->argument.filename.value))) { @@ -541,9 +519,7 @@ FLAC__bool parse_option(int option_index, const char *option_argument, CommandLi ok = false; } } - else if(0 == strcmp(opt, "export-tags-to") || 0 == strcmp(opt, "export-vc-to")) { - if(0 == strcmp(opt, "export-vc-to")) - fprintf(stderr, "WARNING: --%s is deprecated, the new name is --export-tags-to\n", opt); + else if(0 == strcmp(opt, "export-tags-to")) { op = append_shorthand_operation(options, OP__EXPORT_VC_TO); FLAC__ASSERT(0 != option_argument); if(!parse_string(option_argument, &(op->argument.filename.value))) { -- 2.7.4