From 497964afbb69910cb6afa939f79fd00ac16fa259 Mon Sep 17 00:00:00 2001 From: Xuejun Zhai Date: Wed, 3 Dec 2025 19:19:38 -0800 Subject: [PATCH] remove unused API GgmlOvDecoder::get_output_names() --- ggml/src/ggml-openvino/ggml-decoder.cpp | 5 ----- ggml/src/ggml-openvino/ggml-decoder.h | 2 -- ggml/src/ggml-openvino/openvino/decoder.hpp | 2 -- 3 files changed, 9 deletions(-) diff --git a/ggml/src/ggml-openvino/ggml-decoder.cpp b/ggml/src/ggml-openvino/ggml-decoder.cpp index b6886733ba..75f781f533 100644 --- a/ggml/src/ggml-openvino/ggml-decoder.cpp +++ b/ggml/src/ggml-openvino/ggml-decoder.cpp @@ -134,7 +134,6 @@ void GgmlOvDecoder::set_input_output(ggml_tensor * node, bool naive) { node_output = node->view_src; } - m_output_names.push_back(node_output_name); m_outputs[node_output_name] = node_output; current_node_info.node = node; @@ -789,10 +788,6 @@ ov::element::Type GgmlOvDecoder::get_output_type(const std::string & name) const return get_ov_type(m_outputs.at(name)); } -std::vector GgmlOvDecoder::get_output_names() const { - return m_output_names; -} - std::vector GgmlOvDecoder::get_output_names(int node_idx) const { return {m_node_info_list[node_idx].node_output_name}; } diff --git a/ggml/src/ggml-openvino/ggml-decoder.h b/ggml/src/ggml-openvino/ggml-decoder.h index 51f314f17c..2050e1762d 100644 --- a/ggml/src/ggml-openvino/ggml-decoder.h +++ b/ggml/src/ggml-openvino/ggml-decoder.h @@ -119,8 +119,6 @@ public: virtual int32_t * get_output_op_params(int node_idx) const override; - virtual std::vector get_output_names() const override; - virtual std::vector get_output_names(int node_idx) const override; virtual const std::string & get_op_type() const override; diff --git a/ggml/src/ggml-openvino/openvino/decoder.hpp b/ggml/src/ggml-openvino/openvino/decoder.hpp index 54fe890fd1..e867af1416 100644 --- a/ggml/src/ggml-openvino/openvino/decoder.hpp +++ b/ggml/src/ggml-openvino/openvino/decoder.hpp @@ -51,8 +51,6 @@ public: virtual int32_t * get_output_op_params(int node_idx) const = 0; - virtual std::vector get_output_names() const = 0; - virtual std::vector get_output_names(int node_idx) const = 0; virtual const std::string& get_op_type() const = 0;