From 4ecdfcef8d92001358d047d7b8fd4ebdc9d5da33 Mon Sep 17 00:00:00 2001 From: Allan Feldman <6374032+a-feld@users.noreply.github.com> Date: Tue, 31 Aug 2021 19:23:19 -0400 Subject: [PATCH] Remove deprecated pdata.TimestampFromTime. Closes: #3925 (#3935) --- 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()