diff --git a/src/incidence.h b/src/incidence.h --- a/src/incidence.h +++ b/src/incidence.h @@ -507,19 +507,9 @@ Adds an attachment to the incidence. @param attachment is a pointer to a valid Attachment object. - @see deleteAttachment(). */ void addAttachment(const Attachment::Ptr &attachment); - /** - Removes the specified attachment from the incidence. Additionally, - the memory used by the attachment is freed. - - @param attachment is a pointer to a valid Attachment object. - @see addAttachment(), deleteAttachments(). - */ - void deleteAttachment(const Attachment::Ptr &attachment); - /** Removes all attachments of the specified MIME type from the incidence. The memory used by all the removed attachments is freed. @@ -545,7 +535,7 @@ /** Removes all attachments and frees the memory used by them. - @see deleteAttachment( Attachment::Ptr), deleteAttachments( const QString &). + @see deleteAttachments( const QString &). */ void clearAttachments(); diff --git a/src/incidence.cpp b/src/incidence.cpp --- a/src/incidence.cpp +++ b/src/incidence.cpp @@ -721,15 +721,6 @@ updated(); } -void Incidence::deleteAttachment(const Attachment::Ptr &attachment) -{ - int index = d->mAttachments.indexOf(attachment); - if (index > -1) { - setFieldDirty(FieldAttachment); - d->mAttachments.remove(index); - } -} - void Incidence::deleteAttachments(const QString &mime) { Attachment::List result;