From ae56c929bba63935b03d7a55bc991f46baea02fa Mon Sep 17 00:00:00 2001 From: Krishna Satish Deshkulkarni Shankaranarayana Date: Tue, 2 Jun 2026 12:01:37 +0200 Subject: [PATCH] mw/com: remove unused UniqueMethodIdentifier type method_identifier.h defines a UniqueMethodIdentifier that is not referenced by any production code. the binding dependant layer uses its own UniqueMethodIdentifier. removing a spillover from previous work. --- score/mw/com/impl/method_identifier.h | 49 --------------------------- 1 file changed, 49 deletions(-) delete mode 100644 score/mw/com/impl/method_identifier.h diff --git a/score/mw/com/impl/method_identifier.h b/score/mw/com/impl/method_identifier.h deleted file mode 100644 index 367a39dc5..000000000 --- a/score/mw/com/impl/method_identifier.h +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************** - * Copyright (c) 2026 Contributors to the Eclipse Foundation - * - * See the NOTICE file(s) distributed with this work for additional - * information regarding copyright ownership. - * - * This program and the accompanying materials are made available under the - * terms of the Apache License Version 2.0 which is available at - * https://www.apache.org/licenses/LICENSE-2.0 - * - * SPDX-License-Identifier: Apache-2.0 - ********************************************************************************/ -#ifndef SCORE_MW_COM_IMPL_METHOD_IDENTIFIER_H -#define SCORE_MW_COM_IMPL_METHOD_IDENTIFIER_H - -#include "score/mw/com/impl/method_type.h" - -#include -#include - -namespace score::mw::com::impl -{ - -/// \brief Lookup key for a method on a Proxy/Skeleton, formed from the method name and its MethodType. -/// A field's Get, a field's Set and a regular method may share the same name the type field disambiguates them. -struct UniqueMethodIdentifier -{ - std::string_view name; - MethodType type; -}; - -inline bool operator==(const UniqueMethodIdentifier& lhs, const UniqueMethodIdentifier& rhs) noexcept -{ - return (lhs.name == rhs.name) && (lhs.type == rhs.type); -} - -inline bool operator!=(const UniqueMethodIdentifier& lhs, const UniqueMethodIdentifier& rhs) noexcept -{ - return !(lhs == rhs); -} - -inline bool operator<(const UniqueMethodIdentifier& lhs, const UniqueMethodIdentifier& rhs) noexcept -{ - return std::tie(lhs.name, lhs.type) < std::tie(rhs.name, rhs.type); -} - -} // namespace score::mw::com::impl - -#endif // SCORE_MW_COM_IMPL_METHOD_IDENTIFIER_H