Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit e8cbf85

Browse files
authored
Metrics: Remove Set from Cumulative. (#1853)
1 parent 1023986 commit e8cbf85

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

api/src/main/java/io/opencensus/metrics/DoubleCumulative.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,6 @@ public abstract static class DoublePoint {
147147
* @since 0.21
148148
*/
149149
public abstract void add(double delta);
150-
151-
/**
152-
* Sets the given value.
153-
*
154-
* @param val the new value.
155-
* @since 0.21
156-
*/
157-
public abstract void set(double val);
158150
}
159151

160152
/** No-op implementations of DoubleCumulative class. */
@@ -204,9 +196,6 @@ private NoopDoublePoint() {}
204196

205197
@Override
206198
public void add(double delta) {}
207-
208-
@Override
209-
public void set(double val) {}
210199
}
211200
}
212201
}

api/src/main/java/io/opencensus/metrics/LongCumulative.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,6 @@ public abstract static class LongPoint {
146146
* @since 0.21
147147
*/
148148
public abstract void add(long delta);
149-
150-
/**
151-
* Sets the given value.
152-
*
153-
* @param val the new value.
154-
* @since 0.21
155-
*/
156-
public abstract void set(long val);
157149
}
158150

159151
/** No-op implementations of LongCumulative class. */
@@ -199,9 +191,6 @@ private NoopLongPoint() {}
199191

200192
@Override
201193
public void add(long delta) {}
202-
203-
@Override
204-
public void set(long val) {}
205194
}
206195
}
207196
}

0 commit comments

Comments
 (0)