From 11fc6cfac279b57688546aa855a6e2968a5cfa3e Mon Sep 17 00:00:00 2001 From: Seun Akanni Date: Mon, 3 Aug 2026 13:13:12 +0100 Subject: [PATCH] chore: remove the comparator validation probes Validation complete. Keeps .github/workflows/serialisation.yml as a reusable sandbox harness. --- File_Engine/Query/ComparatorProbe.cs | 48 --------------------------- File_Engine/Query/ComparatorProbe2.cs | 48 --------------------------- 2 files changed, 96 deletions(-) delete mode 100644 File_Engine/Query/ComparatorProbe.cs delete mode 100644 File_Engine/Query/ComparatorProbe2.cs diff --git a/File_Engine/Query/ComparatorProbe.cs b/File_Engine/Query/ComparatorProbe.cs deleted file mode 100644 index 467e9752..00000000 --- a/File_Engine/Query/ComparatorProbe.cs +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of the Buildings and Habitats object Model (BHoM) - * Copyright (c) 2015 - 2026, the respective contributors. All rights reserved. - * - * Each contributor holds copyright over their respective contributions. - * The project versioning (Git) records all such contribution source information. - * - * - * The BHoM is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3.0 of the License, or - * (at your option) any later version. - * - * The BHoM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this code. If not, see . - */ - -using BH.oM.Adapters.File; -using BH.oM.Base.Attributes; -using System.ComponentModel; - -namespace BH.Engine.Adapters.File -{ - public static partial class Query - { - /***************************************************/ - /*** Methods ***/ - /***************************************************/ - - // A BHoM array parameter cannot be deserialised: Create.Type has no array - // branch, so this method fails the serialisation round trip by design. - // Temporary probe for validating the ci-serialisation comparator. - [Description("Counts the pull configurations provided. Validation probe only.")] - [Input("configs", "Pull configurations to count.")] - [Output("count", "Number of configurations provided.")] - public static int ComparatorProbeConfigCount(PullConfig[] configs) - { - return configs == null ? 0 : configs.Length; - } - - /***************************************************/ - } -} diff --git a/File_Engine/Query/ComparatorProbe2.cs b/File_Engine/Query/ComparatorProbe2.cs deleted file mode 100644 index f604ae1e..00000000 --- a/File_Engine/Query/ComparatorProbe2.cs +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of the Buildings and Habitats object Model (BHoM) - * Copyright (c) 2015 - 2026, the respective contributors. All rights reserved. - * - * Each contributor holds copyright over their respective contributions. - * The project versioning (Git) records all such contribution source information. - * - * - * The BHoM is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3.0 of the License, or - * (at your option) any later version. - * - * The BHoM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this code. If not, see . - */ - -using BH.oM.Adapters.File; -using BH.oM.Base.Attributes; -using System.ComponentModel; - -namespace BH.Engine.Adapters.File -{ - public static partial class Query - { - /***************************************************/ - /*** Methods ***/ - /***************************************************/ - - // A BHoM array parameter cannot be deserialised: Create.Type has no array - // branch, so this method fails the serialisation round trip by design. - // Temporary probe for validating the ci-serialisation comparator. - [Description("Counts the copy commands provided. Validation probe only.")] - [Input("commands", "Copy commands to count.")] - [Output("count", "Number of commands provided.")] - public static int ComparatorProbeCommandCount(CopyCommand[] commands) - { - return commands == null ? 0 : commands.Length; - } - - /***************************************************/ - } -}