From 3fc56dd5b474cd423324b8c72a39eb2a74d37631 Mon Sep 17 00:00:00 2001 From: benoit Date: Wed, 2 Mar 2016 11:34:43 +0100 Subject: [PATCH] drop some deprecated methods Calculator#addValue 4 years ago StatisticalSampleResult constructor 7 years ago --- .../jmeter/samplers/StatisticalSampleResult.java | 13 +------------ src/core/org/apache/jmeter/util/Calculator.java | 11 ----------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/src/core/org/apache/jmeter/samplers/StatisticalSampleResult.java b/src/core/org/apache/jmeter/samplers/StatisticalSampleResult.java index d966725a67b..2baf54d5373 100644 --- a/src/core/org/apache/jmeter/samplers/StatisticalSampleResult.java +++ b/src/core/org/apache/jmeter/samplers/StatisticalSampleResult.java @@ -68,18 +68,7 @@ public StatisticalSampleResult(SampleResult res) { elapsed = 0; } - /** - * Create a statistical sample result from an ordinary sample result. - * - * @param res the sample result - * @param unused no longer used - * @deprecated no longer necessary; use {@link #StatisticalSampleResult(SampleResult)} instead - */ - @Deprecated - public StatisticalSampleResult(SampleResult res, boolean unused) { - this(res); - } - + public void add(SampleResult res) { // Add Sample Counter setSampleCount(getSampleCount() + res.getSampleCount()); diff --git a/src/core/org/apache/jmeter/util/Calculator.java b/src/core/org/apache/jmeter/util/Calculator.java index e13948d2c3f..194556dff36 100644 --- a/src/core/org/apache/jmeter/util/Calculator.java +++ b/src/core/org/apache/jmeter/util/Calculator.java @@ -69,17 +69,6 @@ public void clear() { count = 0; } - /** - * Add the value for a single sample. - * - * @param newValue the value for the new sample - * - * @deprecated Use {@link #addSample(SampleResult)} instead - */ - @Deprecated - public void addValue(long newValue) { - addValue(newValue, 1); - } /** * Add the value for (possibly multiple) samples.