From dc4f9283efdf347e1420b11bdbbe27c1ad02ad72 Mon Sep 17 00:00:00 2001 From: Ben Cumming <louncharf@gmail.com> Date: Wed, 5 Jul 2017 10:52:30 +0200 Subject: [PATCH] Remove depricated model::add_artificial_spike interface (#319) --- src/model.cpp | 12 ------------ src/model.hpp | 6 ------ 2 files changed, 18 deletions(-) diff --git a/src/model.cpp b/src/model.cpp index 586f4313..85c469f8 100644 --- a/src/model.cpp +++ b/src/model.cpp @@ -168,18 +168,6 @@ time_type model::run(time_type tfinal, time_type dt) { return t_; } -// only thread safe if called outside the run() method -void model::add_artificial_spike(cell_member_type source) { - add_artificial_spike(source, t_); -} - -// only thread safe if called outside the run() method -void model::add_artificial_spike(cell_member_type source, time_type tspike) { - if (domain_.is_local_gid(source.gid)) { - current_spikes().get().push_back({source, tspike}); - } -} - void model::attach_sampler(cell_member_type probe_id, sampler_function f, time_type tfrom) { const auto idx = domain_.local_group_from_gid(probe_id.gid); diff --git a/src/model.hpp b/src/model.hpp index 3d81d196..7f93e3b9 100644 --- a/src/model.hpp +++ b/src/model.hpp @@ -28,12 +28,6 @@ public: time_type run(time_type tfinal, time_type dt); - // only thread safe if called outside the run() method - void add_artificial_spike(cell_member_type source); - - // only thread safe if called outside the run() method - void add_artificial_spike(cell_member_type source, time_type tspike); - void attach_sampler(cell_member_type probe_id, sampler_function f, time_type tfrom = 0); const std::vector<probe_record>& probes() const; -- GitLab