Completely remove StripAll from the API

I'd imagined it being useful for calls to `strip()`, but it's not
actually used there since that's an OR-ed together set of flags 
representing which tags to strip.
This commit is contained in:
Scott Wheeler 2019-09-12 11:19:39 +02:00
parent 7082b9f66b
commit f3ecfa11bb
3 changed files with 2 additions and 3 deletions

View File

@ -244,7 +244,7 @@ bool MPEG::File::save(int tags, StripTags strip, ID3v2::Version version, Duplica
// Remove all the tags not going to be saved.
if(strip == StripOthers || strip == StripAll)
if(strip == StripOthers)
File::strip(~tags, false);
if(ID3v2 & tags) {

View File

@ -169,7 +169,7 @@ bool RIFF::WAV::File::save(TagTypes tags, StripTags strip, ID3v2::Version versio
return false;
}
if(strip == StripOthers || strip == StripAll)
if(strip == StripOthers)
File::strip(static_cast<TagTypes>(AllTags & ~tags));
if(tags & ID3v2) {

View File

@ -67,7 +67,6 @@ namespace TagLib {
*/
enum StripTags {
StripNone, //<! Don't strip any tags
StripAll, //<! Strip all tags
StripOthers //<! Strip all tags not explicitly referenced in method call
};