From 44e7b540d0130bb89eafa4bd76f5970f9eac6662 Mon Sep 17 00:00:00 2001 From: Allan Feldman Date: Mon, 30 Aug 2021 16:32:35 -0400 Subject: [PATCH] Remove deprecated pdata.TimestampFromTime. Closes: #3925 --- model/pdata/timestamp.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/model/pdata/timestamp.go b/model/pdata/timestamp.go index 463551a8878..bd3f96b0121 100644 --- a/model/pdata/timestamp.go +++ b/model/pdata/timestamp.go @@ -27,12 +27,6 @@ func NewTimestampFromTime(t time.Time) Timestamp { return Timestamp(uint64(t.UnixNano())) } -// TimestampFromTime constructs a new Timestamp from the provided time.Time. -// Deprecated: use NewTimestampFromTime instead. -func TimestampFromTime(t time.Time) Timestamp { - return Timestamp(uint64(t.UnixNano())) -} - // AsTime converts this to a time.Time. func (ts Timestamp) AsTime() time.Time { return time.Unix(0, int64(ts)).UTC()