From b7d5ab4c93a447029e3625fda5644521a83bb927 Mon Sep 17 00:00:00 2001 From: Eivind Jahren Date: Fri, 23 Aug 2024 13:43:25 +0200 Subject: [PATCH] Remove unused well_segment_free__ --- lib/include/resdata/well/well_segment.hpp | 1 - lib/resdata/well_segment.cpp | 19 ------------------- 2 files changed, 20 deletions(-) diff --git a/lib/include/resdata/well/well_segment.hpp b/lib/include/resdata/well/well_segment.hpp index c6ae44cce..b4973f01a 100644 --- a/lib/include/resdata/well/well_segment.hpp +++ b/lib/include/resdata/well/well_segment.hpp @@ -24,7 +24,6 @@ well_segment_alloc_from_kw(const rd_kw_type *iseg_kw, well_segment_type *well_segment_alloc(int segment_id, int outlet_segment_id, int branch_id, const double *rseg_data); void well_segment_free(well_segment_type *segment); -void well_segment_free__(void *arg); bool well_segment_active(const well_segment_type *segment); bool well_segment_main_stem(const well_segment_type *segment); diff --git a/lib/resdata/well_segment.cpp b/lib/resdata/well_segment.cpp index 237e84b8a..99099d565 100644 --- a/lib/resdata/well_segment.cpp +++ b/lib/resdata/well_segment.cpp @@ -98,20 +98,6 @@ well_segment_alloc_from_kw(const rd_kw_type *iseg_kw, } } -/* - if (iseg_kw != NULL) { - if (conn->segment != WELL_CONN_NORMAL_WELL_SEGMENT_ID) { - - } else { - conn->branch = 0; - conn->outlet_segment = 0; - } - } else { - conn->branch = 0; - conn->outlet_segment = 0; - } - */ - void well_segment_free(well_segment_type *segment) { for (auto &pair : segment->connections) well_conn_collection_free(pair.second); @@ -119,11 +105,6 @@ void well_segment_free(well_segment_type *segment) { delete segment; } -void well_segment_free__(void *arg) { - well_segment_type *segment = well_segment_safe_cast(arg); - well_segment_free(segment); -} - bool well_segment_active(const well_segment_type *segment) { if (segment->branch_id == WELL_SEGMENT_BRANCH_INACTIVE_VALUE) return false;