From a7ac170153abd4beaed1b86964ab9745910ec792 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 16 Jan 2021 17:07:07 -0700 Subject: [PATCH] Remove unused methods --- src/spectator/example.cr | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/spectator/example.cr b/src/spectator/example.cr index f5169a5..e26a5f4 100644 --- a/src/spectator/example.cr +++ b/src/spectator/example.cr @@ -72,27 +72,9 @@ module Spectator private def run_internal group?.try(&.call_before_each(self)) - run_test - group?.try(&.call_after_each(self)) - end - - private def run_before_hooks : Nil - return unless (parent = group?) - - parent.call_once_before_all - parent.call_before_each(self) - end - - private def run_after_hooks : Nil - return unless (parent = group?) - - parent.call_after_each(self) - parent.call_once_after_all if parent.finished? - end - - private def run_test : Nil @entrypoint.call(self) @finished = true + group?.try(&.call_after_each(self)) end # Executes code within the example's test context.