From 1c05e806ac8d66bad47855b26350c85026b8732c Mon Sep 17 00:00:00 2001
From: Thorsten Hater <24411438+thorstenhater@users.noreply.github.com>
Date: Wed, 23 Nov 2022 12:28:50 +0100
Subject: [PATCH] Remove deprecated spike_detector. (#2041)

* Remove deprecated spike_detector.
---
 python/cells.cpp | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/python/cells.cpp b/python/cells.cpp
index bc881d3a..1421d3e5 100644
--- a/python/cells.cpp
+++ b/python/cells.cpp
@@ -585,14 +585,6 @@ void register_cells(pybind11::module& m) {
             return util::pprintf("<arbor.iclamp: frequency {} Hz>", c.frequency);});
 
     // arb::threshold_detector
-    struct spike_detector {};
-    pybind11::class_<spike_detector> sd(m, "spike_detector", "Deprecated, please use 'threshold_detector'");
-    sd.def(pybind11::init(
-               [](pybind11::object) -> spike_detector {
-                   throw arb::arbor_exception{"Deprecated, please use 'threshold_detector' instead."};
-                   return {}; // unreachable
-               }));
-
     pybind11::class_<arb::threshold_detector> detector(m, "threshold_detector",
             "A spike detector, generates a spike when voltage crosses a threshold. Can be used as source endpoint for an arbor.connection.");
     detector
-- 
GitLab