Fix: Remove useless code.#619
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR removes an unused helper method for retrieving a GPU info command from DConfig, simplifying the CommonTools interface to only expose the GPU info pre-generation API that is actually used. Class diagram for CommonTools before removal of getGpuInfoCommandFromDConfigclassDiagram
class CommonTools {
+static QString getBackupPath()
+static void parseEDID(const QStringList allEDIDS, const QString input, bool isHW)
+static QString getGpuInfoCommandFromDConfig()
+static QString preGenerateGpuInfo()
}
Updated class diagram for CommonTools after removal of getGpuInfoCommandFromDConfigclassDiagram
class CommonTools {
+static QString getBackupPath()
+static void parseEDID(const QStringList allEDIDS, const QString input, bool isHW)
+static QString preGenerateGpuInfo()
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Note
详情{
"deepin-devicemanager/src/Tool/commontools.cpp": [
{
"line": " return \"https://driver.uniontech.com/api/v1/drive/search\";",
"line_number": 177,
"rule": "S35",
"reason": "Url link | 162cef9d4a"
},
{
"line": " return \"https://driver.uniontech.com/api/v1/drive/search\";",
"line_number": 182,
"rule": "S35",
"reason": "Url link | 162cef9d4a"
},
{
"line": " return \"https://drive-pre.uniontech.com/api/v1/drive/search\";",
"line_number": 185,
"rule": "S35",
"reason": "Url link | 0e010283c1"
}
]
} |
-- Remove useless code. Log: fix issue Bug: https://pms.uniontech.com/bug-view-352671.html
6115ac8 to
f3ed0e6
Compare
deepin pr auto review这段代码diff主要涉及两个文件的修改:
下面是对这些修改的详细审查意见: 1. 版权信息更新-// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
+// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd.审查意见:
2. 删除
|
|
Note
详情{
"deepin-devicemanager/src/Tool/commontools.cpp": [
{
"line": " return \"https://driver.uniontech.com/api/v1/drive/search\";",
"line_number": 177,
"rule": "S35",
"reason": "Url link | 162cef9d4a"
},
{
"line": " return \"https://driver.uniontech.com/api/v1/drive/search\";",
"line_number": 182,
"rule": "S35",
"reason": "Url link | 162cef9d4a"
},
{
"line": " return \"https://drive-pre.uniontech.com/api/v1/drive/search\";",
"line_number": 185,
"rule": "S35",
"reason": "Url link | 0e010283c1"
}
]
} |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: GongHeng2017, lzwind The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/forcemerge |
|
This pr force merged! (status: unstable) |
-- Remove useless code.
Log: fix issue
Bug: https://pms.uniontech.com/bug-view-352671.html
Summary by Sourcery
Enhancements: