Skip to content

Commit 8509a18

Browse files
GongHeng2017deepin-bot[bot]
authored andcommitted
Fix: Remove useless code.
-- Remove useless code. Log: fix issue Bug: https://pms.uniontech.com/bug-view-352671.html
1 parent 4fbdcc8 commit 8509a18

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

deepin-devicemanager/src/Tool/commontools.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd.
22
//
33
// SPDX-License-Identifier: GPL-3.0-or-later
44

@@ -274,15 +274,6 @@ void CommonTools::parseEDID(const QStringList &allEDIDS, const QString &input, b
274274
}
275275
}
276276

277-
QString CommonTools::getGpuInfoCommandFromDConfig()
278-
{
279-
QString cmd;
280-
DConfig *dconfig = DConfig::create("org.deepin.devicemanager","org.deepin.devicemanager");
281-
if (dconfig && dconfig->isValid() && dconfig->keyList().contains("CommandToGetGPUInfo"))
282-
cmd = dconfig->value("CommandToGetGPUInfo").toString();
283-
return cmd;
284-
}
285-
286277
QString CommonTools::preGenerateGpuInfo()
287278
{
288279
static QString gpuBaseInfo { "" };

deepin-devicemanager/src/Tool/commontools.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ class CommonTools : public QObject
7979
static QString getBackupPath();
8080

8181
static void parseEDID(const QStringList &allEDIDS, const QString &input, bool isHW = true);
82-
static QString getGpuInfoCommandFromDConfig();
8382
static QString preGenerateGpuInfo();
8483

8584
private:

0 commit comments

Comments
 (0)