From 3bb2dc8e7f91061a9f1141e9b8122d00adb9faee Mon Sep 17 00:00:00 2001 From: Kim Barrett Date: Thu, 14 Jul 2022 14:37:10 +0000 Subject: [PATCH] 8290290: Remove addition of TimeInstants Reviewed-by: stuefe, dholmes --- src/hotspot/share/utilities/ticks.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hotspot/share/utilities/ticks.hpp b/src/hotspot/share/utilities/ticks.hpp index f4d4f69c134..969f6792fbe 100644 --- a/src/hotspot/share/utilities/ticks.hpp +++ b/src/hotspot/share/utilities/ticks.hpp @@ -1,5 +1,5 @@ /* -* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. +* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -215,9 +215,6 @@ class TimeInstant : public Rep { Rep::operator-=(rhs); return *this; } - TimeInterval operator+(const TimeInstant& end) const { - return TimeInterval(end, *this); - } TimeInterval operator-(const TimeInstant& start) const { return TimeInterval(*this, start); }