From 0e39a412f6eb32dab092b84dd4d2019757722aec Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Mon, 14 Sep 2026 14:55:31 +0800 Subject: [PATCH] fix: remove unused passInputEvent declaration from utils.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Utils::passInputEvent was declared but never defined or called anywhere in the project; linking a unit test against it would fail. 移除 utils.h 中从未实现且全项目零调用的 passInputEvent 无效声明。 Log: 移除未实现的死声明 passInputEvent Influence: 仅清理死代码,无功能影响;单测链接恢复正常。 --- src/utils.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils.h b/src/utils.h index 42f5ad3..696df7e 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2011-2022 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2011 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -14,7 +14,6 @@ class Utils : public QObject public: static QString getQrcPath(QString imageName); // static QString getQssPath(QString qssName); - static void passInputEvent(int wid); static QString colorToHex(QColor color); static QString colorToCMYK(QColor color); static QString colorToHSV(QColor color);