Skip to content

Commit 77b34ce

Browse files
syshaficopybara-github
authored andcommitted
Remove unused AddExposures method.
PiperOrigin-RevId: 340040126
1 parent 0984a03 commit 77b34ce

File tree

7 files changed

+0
-14
lines changed

7 files changed

+0
-14
lines changed

agent_based_epidemic_sim/applications/contact_tracing/risk_score.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class TracingRiskScore : public RiskScore {
5454
infection_onset_time_ = std::min(infection_onset_time_, transition.time);
5555
}
5656
}
57-
void AddExposures(absl::Span<const Exposure* const> exposures) override {}
5857
void AddExposureNotification(const Exposure& exposure,
5958
const ContactReport& notification) override {
6059
// We don't take action on negative tests.

agent_based_epidemic_sim/applications/home_work/risk_score.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class TogglingRiskScore : public RiskScore {
4141
: location_type_(std::move(location_type)), toggles_(toggles) {}
4242

4343
void AddHealthStateTransistion(HealthTransition transition) override {}
44-
void AddExposures(absl::Span<const Exposure* const> exposures) override {}
4544
void AddExposureNotification(const Exposure& exposure,
4645
const ContactReport& notification) override {}
4746

agent_based_epidemic_sim/applications/risk_learning/risk_score.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ class LearningRiskScore : public RiskScore {
6464
infection_onset_time_ = std::min(infection_onset_time_, transition.time);
6565
}
6666
}
67-
void AddExposures(absl::Span<const Exposure* const> exposures) override {}
6867
void AddExposureNotification(const Exposure& exposure,
6968
const ContactReport& notification) override {
7069
// Actuate based on app user flag.
@@ -176,11 +175,6 @@ class AppEnabledRiskScore : public RiskScore {
176175
void AddHealthStateTransistion(HealthTransition transition) override {
177176
risk_score_->AddHealthStateTransistion(transition);
178177
}
179-
void AddExposures(absl::Span<const Exposure* const> exposures) override {
180-
if (is_app_enabled_) {
181-
risk_score_->AddExposures(exposures);
182-
}
183-
}
184178
void AddExposureNotification(const Exposure& exposure,
185179
const ContactReport& notification) override {
186180
if (is_app_enabled_) {

agent_based_epidemic_sim/core/risk_score.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ namespace {
2424
class NullRiskScore : public RiskScore {
2525
public:
2626
void AddHealthStateTransistion(HealthTransition transition) override {}
27-
void AddExposures(absl::Span<const Exposure* const> exposures) override {}
2827
void AddExposureNotification(const Exposure& contact,
2928
const ContactReport& notification) override {}
3029

agent_based_epidemic_sim/core/risk_score.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ class RiskScore {
2828
public:
2929
// Informs the RiskScore of a HealthTransition.
3030
virtual void AddHealthStateTransistion(HealthTransition transition) = 0;
31-
// Informs the RiskScore of new exposures.
32-
virtual void AddExposures(absl::Span<const Exposure* const> exposures) = 0;
3331
// Informs the RiskScore of received exposure notifications.
3432
virtual void AddExposureNotification(const Exposure& exposure,
3533
const ContactReport& notification) = 0;

agent_based_epidemic_sim/core/seir_agent.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ void SEIRAgent::ProcessInfectionOutcomes(
257257
for (const InfectionOutcome& infection_outcome : infection_outcomes) {
258258
exposures.push_back(&infection_outcome.exposure);
259259
}
260-
risk_score_->AddExposures(exposures);
261260

262261
if (next_health_transition_.health_state == HealthState::SUSCEPTIBLE &&
263262
!exposures.empty()) {

agent_based_epidemic_sim/util/test_util.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ class MockRiskScore : public RiskScore {
5050
public:
5151
MOCK_METHOD(void, AddHealthStateTransistion, (HealthTransition transition),
5252
(override));
53-
MOCK_METHOD(void, AddExposures, (absl::Span<const Exposure* const> exposures),
54-
(override));
5553
MOCK_METHOD(void, AddExposureNotification,
5654
(const Exposure& contact, const ContactReport& notification),
5755
(override));

0 commit comments

Comments
 (0)