Closed Bug 407487 Opened 17 years ago Closed 17 years ago

Drop nsIAddressBook::abCardToEscapedVCard

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)

Attached patch The fixSplinter Review
I was just writing some documentation for nsIAddressBook.idl (for another bug) and came across this function:

string abCardToEscapedVCard(in nsIAbCard aCard);

All it does is to call aCard->ConvertToEscapedVCard(param) which happens to return a string as well...

Considering when I was documenting the function, I was thinking that the proper way is just to get the escaped vcard from the card itself, I think we can just drop this. There's two callers (one SM, one TB) and it'll save us getting the ab service in those instances (as well as the redundant call).

I also found an rv = x; return rv; combo to tidy up.
Attachment #292218 - Flags: superreview?(neil)
Attachment #292218 - Flags: review?(neil)
Attachment #292218 - Flags: superreview?(neil)
Attachment #292218 - Flags: superreview+
Attachment #292218 - Flags: review?(neil)
Attachment #292218 - Flags: review+
Patch checked in -> fixed.
Status: NEW → RESOLVED
Closed: 17 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: