Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions include/cppkafka/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,6 @@ class CPPKAFKA_API MessageTimestamp {
*/
MessageTimestamp(std::chrono::milliseconds timestamp, TimestampType type);

/**
* Constructs a timestamp object using a 'time_point'.
*/
template <typename Clock, typename Duration = typename Clock::duration>
MessageTimestamp(std::chrono::time_point<Clock, Duration> 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.
Expand Down
7 changes: 0 additions & 7 deletions src/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,6 @@ MessageTimestamp::MessageTimestamp(milliseconds timestamp, TimestampType type)

}

template <typename Clock, typename Duration>
MessageTimestamp::MessageTimestamp(std::chrono::time_point<Clock, Duration> timestamp, TimestampType type)
: timestamp_(std::chrono::duration_cast<std::chrono::milliseconds>(timestamp.time_since_epoch())),
type_(type) {

}

milliseconds MessageTimestamp::get_timestamp() const {
return timestamp_;
}
Expand Down