mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
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:
parent
7082b9f66b
commit
f3ecfa11bb
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user