Closed Bug 360492 Opened 18 years ago Closed 18 years ago

nsIAbMDBCard::CopyCard is unused.

Categories

(MailNews Core :: Address Book, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: standard8, Assigned: standard8)

Details

(Keywords: memory-footprint)

Attachments

(1 file)

According to lxr (http://lxr.mozilla.org/seamonkey/search?string=CopyCard) nsIAbMDBCard::CopyCard is never used. Additionally, its got some nasty copy and paste from nsIAbCard::Copy. Hence I think we can drop it.
This removes the largely copy and pasted function CopyCard from nsIAbMDBCard. I've also ensured that we initalise a copy of variables correctly in nsIAbCard::Copy based on what was in CopyCard.
Attachment #245408 - Flags: superreview?(bienvenu)
Attachment #245408 - Flags: review?(bienvenu)
Comment on attachment 245408 [details] [diff] [review]
Removes nsIAbMDBCard::CopyCard

r/sr=bienvenu - but if we want to support copying cards to the clipboard, would this function then become useful?
Attachment #245408 - Flags: superreview?(bienvenu)
Attachment #245408 - Flags: superreview+
Attachment #245408 - Flags: review?(bienvenu)
Attachment #245408 - Flags: review+
(In reply to comment #2)
> (From update of attachment 245408 [details] [diff] [review] [edit])
> r/sr=bienvenu - but if we want to support copying cards to the clipboard, would
> this function then become useful?

If it did, then we should use the generic nsIAbCard::Copy, and possibly extend that down into the nsAb*Card for database specific functions. If we left nsIAbMDBCard::CopyCard and used that, then we'd have a mdb specific stuff which means copy wouldn't work for outlook, ldap etc.
Patch checked in
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: