From e15e7a0bb2a835e7b26ee93513e3d3d25226e4b8 Mon Sep 17 00:00:00 2001 From: obarun <eric@obarun.org> Date: Sat, 15 Jul 2023 21:48:55 +1100 Subject: [PATCH] remove useless function graph_build_g --- src/include/66/graph.h | 3 --- src/lib66/graph/graph_build_g.c | 34 --------------------------------- 2 files changed, 37 deletions(-) delete mode 100644 src/lib66/graph/graph_build_g.c diff --git a/src/include/66/graph.h b/src/include/66/graph.h index 14d96598..3642b5c8 100644 --- a/src/include/66/graph.h +++ b/src/include/66/graph.h @@ -23,9 +23,6 @@ #include <66/tree.h> #include <66/ssexec.h> - - -//extern void graph_build_g(graph_t *graph, resolve_service_t *ares, unsigned int *areslen, ssexec_t *info) ; extern void graph_build_tree(graph_t *g,char const *base, resolve_tree_master_enum_t field) ; extern void graph_build_service(graph_t *g, resolve_service_t *ares, unsigned int *areslen, ssexec_t *info, uint32_t flag) ; extern int graph_compute_dependencies(graph_t *g, char const *vertex, char const *edge, uint8_t requiredby) ; diff --git a/src/lib66/graph/graph_build_g.c b/src/lib66/graph/graph_build_g.c deleted file mode 100644 index 4d98f929..00000000 --- a/src/lib66/graph/graph_build_g.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * graph_build_g.c - * - * Copyright (c) 2018-2022 Eric Vidal <eric@obarun.org> - * - * All rights reserved. - * - * This file is part of Obarun. It is subject to the license terms in - * the LICENSE file found in the top-level directory of this - * distribution. - * This file may not be copied, modified, propagated, or distributed - * except according to the terms contained in the LICENSE file./ - */ - - -#include <oblibs/log.h> - -#include <66/service.h> -#include <66/resolve.h> -#include <66/graph.h> -#include <66/ssexec.h> - -void graph_build_g(graph_t *graph, resolve_service_t *ares, unsigned int *areslen, ssexec_t *info) -{ - log_flow() ; - - if (data_type == DATA_SERVICE) - - graph_build_service(graph, ares, areslen, info) ; - - else if (data_type == DATA_TREE) - - graph_build_tree(g, info->base.s, E_RESOLVE_TREE_MASTER_CONTENTS) ; -} -- GitLab