diff --git a/include/cppkafka/message.h b/include/cppkafka/message.h index ad9a980..7a3459a 100644 --- a/include/cppkafka/message.h +++ b/include/cppkafka/message.h @@ -244,12 +244,6 @@ public: */ MessageTimestamp(std::chrono::milliseconds timestamp, TimestampType type); - /** - * Constructs a timestamp object using a 'time_point'. - */ - template - MessageTimestamp(std::chrono::time_point timestamp, TimestampType type); - /** * Gets the timestamp value. If the timestamp was created with a 'time_point', * the duration represents the number of milliseconds since epoch. diff --git a/src/message.cpp b/src/message.cpp index 77c0989..b17f20b 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -92,13 +92,6 @@ MessageTimestamp::MessageTimestamp(milliseconds timestamp, TimestampType type) } -template -MessageTimestamp::MessageTimestamp(std::chrono::time_point timestamp, TimestampType type) -: timestamp_(std::chrono::duration_cast(timestamp.time_since_epoch())), - type_(type) { - -} - milliseconds MessageTimestamp::get_timestamp() const { return timestamp_; }