Remove unused variable
This commit is contained in:
parent
572c6af5db
commit
c753c2e1fd
|
@ -817,7 +817,6 @@ void setTagInfo(const SetTagInfoArgs &args)
|
||||||
}
|
}
|
||||||
|
|
||||||
// alter attachments
|
// alter attachments
|
||||||
bool attachmentsModified = false;
|
|
||||||
if (args.addAttachmentArg.isPresent() || args.updateAttachmentArg.isPresent() || args.removeAttachmentArg.isPresent()
|
if (args.addAttachmentArg.isPresent() || args.updateAttachmentArg.isPresent() || args.removeAttachmentArg.isPresent()
|
||||||
|| args.removeExistingAttachmentsArg.isPresent()) {
|
|| args.removeExistingAttachmentsArg.isPresent()) {
|
||||||
static const string attachmentsContext("setting attachments");
|
static const string attachmentsContext("setting attachments");
|
||||||
|
@ -828,7 +827,6 @@ void setTagInfo(const SetTagInfoArgs &args)
|
||||||
for (size_t i = 0, count = container->attachmentCount(); i < count; ++i) {
|
for (size_t i = 0, count = container->attachmentCount(); i < count; ++i) {
|
||||||
container->attachment(i)->setIgnored(false);
|
container->attachment(i)->setIgnored(false);
|
||||||
}
|
}
|
||||||
attachmentsModified = true;
|
|
||||||
}
|
}
|
||||||
// add/update/remove attachments
|
// add/update/remove attachments
|
||||||
AttachmentInfo currentInfo;
|
AttachmentInfo currentInfo;
|
||||||
|
@ -837,21 +835,21 @@ void setTagInfo(const SetTagInfoArgs &args)
|
||||||
for (const char *value : args.addAttachmentArg.values(i)) {
|
for (const char *value : args.addAttachmentArg.values(i)) {
|
||||||
currentInfo.parseDenotation(value);
|
currentInfo.parseDenotation(value);
|
||||||
}
|
}
|
||||||
attachmentsModified |= currentInfo.next(container, diag);
|
currentInfo.next(container, diag);
|
||||||
}
|
}
|
||||||
currentInfo.action = AttachmentAction::Update;
|
currentInfo.action = AttachmentAction::Update;
|
||||||
for (size_t i = 0, occurrences = args.updateAttachmentArg.occurrences(); i != occurrences; ++i) {
|
for (size_t i = 0, occurrences = args.updateAttachmentArg.occurrences(); i != occurrences; ++i) {
|
||||||
for (const char *value : args.updateAttachmentArg.values(i)) {
|
for (const char *value : args.updateAttachmentArg.values(i)) {
|
||||||
currentInfo.parseDenotation(value);
|
currentInfo.parseDenotation(value);
|
||||||
}
|
}
|
||||||
attachmentsModified |= currentInfo.next(container, diag);
|
currentInfo.next(container, diag);
|
||||||
}
|
}
|
||||||
currentInfo.action = AttachmentAction::Remove;
|
currentInfo.action = AttachmentAction::Remove;
|
||||||
for (size_t i = 0, occurrences = args.removeAttachmentArg.occurrences(); i != occurrences; ++i) {
|
for (size_t i = 0, occurrences = args.removeAttachmentArg.occurrences(); i != occurrences; ++i) {
|
||||||
for (const char *value : args.removeAttachmentArg.values(i)) {
|
for (const char *value : args.removeAttachmentArg.values(i)) {
|
||||||
currentInfo.parseDenotation(value);
|
currentInfo.parseDenotation(value);
|
||||||
}
|
}
|
||||||
attachmentsModified |= currentInfo.next(container, diag);
|
currentInfo.next(container, diag);
|
||||||
}
|
}
|
||||||
} else if (fileInfo.attachmentsParsingStatus() == ParsingStatus::NotSupported) {
|
} else if (fileInfo.attachmentsParsingStatus() == ParsingStatus::NotSupported) {
|
||||||
diag.emplace_back(
|
diag.emplace_back(
|
||||||
|
|
Loading…
Reference in New Issue