From 356ff345fec21779f6f335992b6e828c38b76398 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Fri, 9 Jan 2026 16:47:41 -0800 Subject: [PATCH] [core] remove unnecessary forward declarations of `class ThreadNetif` (#12278) Removes unnecessary `class ThreadNetif;` forward declarations in `meshcop.hpp`, `child_supervision.hpp`, and `jam_detector.hpp`. --- src/core/meshcop/meshcop.hpp | 3 --- src/core/thread/child_supervision.hpp | 2 -- src/core/utils/jam_detector.hpp | 3 --- 3 files changed, 8 deletions(-) diff --git a/src/core/meshcop/meshcop.hpp b/src/core/meshcop/meshcop.hpp index a118f4b2b..7f0655840 100644 --- a/src/core/meshcop/meshcop.hpp +++ b/src/core/meshcop/meshcop.hpp @@ -55,9 +55,6 @@ #include "meshcop/steering_data.hpp" namespace ot { - -class ThreadNetif; - namespace MeshCoP { /** diff --git a/src/core/thread/child_supervision.hpp b/src/core/thread/child_supervision.hpp index 3e833a3ad..2eb0b77f4 100644 --- a/src/core/thread/child_supervision.hpp +++ b/src/core/thread/child_supervision.hpp @@ -51,8 +51,6 @@ namespace ot { -class ThreadNetif; - /** * * Child supervision feature provides a mechanism for parent diff --git a/src/core/utils/jam_detector.hpp b/src/core/utils/jam_detector.hpp index a4be7a532..b20f67fce 100644 --- a/src/core/utils/jam_detector.hpp +++ b/src/core/utils/jam_detector.hpp @@ -47,9 +47,6 @@ #include "common/timer.hpp" namespace ot { - -class ThreadNetif; - namespace Utils { class JamDetector : public InstanceLocator, private NonCopyable