gncInvoice: complete removal gncInvoiceDateExists

This commit is contained in:
Christopher Lam 2018-03-31 05:32:37 +08:00
parent b99dee1736
commit f910d931f7

View File

@ -1856,14 +1856,6 @@ gncInvoiceApplyPayment (const GncInvoice *invoice, Transaction *txn,
gncOwnerAutoApplyPaymentsWithLots (owner, selected_lots);
}
static gboolean gncInvoiceDateExists (time64 date)
{
/* Going forward we want to use INT64_MAX to indicate "no date", but for
* backward compatibility we need to treat 0 as no date as well.
*/
return (date != INT64_MAX && date !=0);
}
gboolean gncInvoiceIsPosted (const GncInvoice *invoice)
{
if (!invoice) return FALSE;