remove dateString from Item union
diff --git a/inc/qcbor/qcbor_decode.h b/inc/qcbor/qcbor_decode.h
index e9c40fc..94fb20e 100644
--- a/inc/qcbor/qcbor_decode.h
+++ b/inc/qcbor/qcbor_decode.h
@@ -238,9 +238,7 @@
* pointer and a length. */
#define QCBOR_TYPE_NEGBIGNUM 10
/** Type for [RFC 3339] (https://tools.ietf.org/html/rfc3339) date
- * string, possibly with time zone. Data is in @c val.string . Note this
- * was previously in @c val.dateString, however this is the same as
- * val.string being the same type in same union. */
+ * string, possibly with time zone. Data is in @c val.string . */
#define QCBOR_TYPE_DATE_STRING 11
/** Type for integer seconds since Jan 1970 + floating-point
* fraction. Data is in @c val.epochDate */
@@ -449,10 +447,6 @@
* number of days before or after Jan 1, 1970. */
int64_t epochDays;
- /** No longer used. Was the value for @ref QCBOR_TYPE_DATE_STRING,
- * but now that value is in @c string. TODO: finish writing this.*/
- UsefulBufC dateString;
-
/** The value for @c uDataType @ref QCBOR_TYPE_POSBIGNUM and
@ref QCBOR_TYPE_NEGBIGNUM. TODO: change to string*/
UsefulBufC bigNum;
diff --git a/test/qcbor_decode_tests.c b/test/qcbor_decode_tests.c
index b489657..8e33858 100644
--- a/test/qcbor_decode_tests.c
+++ b/test/qcbor_decode_tests.c
@@ -2445,7 +2445,7 @@
return -1;
}
if(Item.uDataType != QCBOR_TYPE_DATE_STRING ||
- UsefulBufCompareToSZ(Item.val.dateString, "1985-04-12")){
+ UsefulBufCompareToSZ(Item.val.string, "1985-04-12")){
return -2;
}