Commit ae94fe60 authored by Volker Krause's avatar Volker Krause
Browse files

Remove the unused Context.senderDate property

Superseded by the more generic contextDateTime property of the document
node object.
parent 750008b4
......@@ -93,7 +93,6 @@
}
],
"objectName": "",
"pdfPageNumber": -1,
"senderDate": "Fri Feb 17 15:18:00 2012 GMT+0100"
"pdfPageNumber": -1
}
]
......@@ -87,7 +87,6 @@
},
{
"objectName": "",
"pdfPageNumber": -1,
"senderDate": "Invalid Date"
"pdfPageNumber": -1
}
]
......@@ -104,7 +104,6 @@
}
],
"objectName": "",
"pdfPageNumber": -1,
"senderDate": "Invalid Date"
"pdfPageNumber": -1
}
]
......@@ -77,7 +77,6 @@
},
{
"objectName": "",
"pdfPageNumber": -1,
"senderDate": "Mon Aug 19 20:23:28 2019 GMT+0200"
"pdfPageNumber": -1
}
]
......@@ -88,7 +88,6 @@
},
{
"objectName": "",
"pdfPageNumber": -1,
"senderDate": "Mon Aug 19 20:23:28 2019 GMT+0200"
"pdfPageNumber": -1
}
]
......@@ -15,7 +15,6 @@
{
"barcode": "Hello World!\n",
"objectName": "",
"pdfPageNumber": -1,
"senderDate": "Invalid Date"
"pdfPageNumber": -1
}
]
......@@ -464,7 +464,6 @@
},
{
"objectName": "",
"pdfPageNumber": -1,
"senderDate": "Invalid Date"
"pdfPageNumber": -1
}
]
......@@ -139,8 +139,6 @@ ExtractorResult ExtractorScriptEngine::execute(const ScriptExtractor *extractor,
d->m_context->m_pdfPageNum = triggerNode.location().toInt();
}
d->m_context->m_senderDate = node.contextDateTime();
d->m_jsonLdApi->setContextDate(node.contextDateTime());
d->m_barcodeApi->setContextDate(node.contextDateTime());
......
......@@ -25,12 +25,6 @@ namespace JsApi {
class Context : public QObject
{
Q_OBJECT
/** The time the email containing the extracted data was sent.
* This can be useful if the extracted data only contains dates without
* specifying a year. The year can then be inferred out of this context.
*/
Q_PROPERTY(QDateTime senderDate MEMBER m_senderDate)
/** The PDF page number (0-based) if the extractor was triggered by
* content found in a PDF file (typically a barcode).
*/
......@@ -54,7 +48,6 @@ public:
QJSValue data() const;
void reset();
QDateTime m_senderDate;
QVariant m_barcode;
QJSValue m_data;
int m_pdfPageNum = -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment