Skip to content

Commit accfa41

Browse files
UdjinM6kwvg
authored andcommitted
qt: drop unused networkId param in networkstyle.{cpp,h}
1 parent de3dda8 commit accfa41

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/qt/networkstyle.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void NetworkStyle::rotateColors(QImage& img, const int iconColorHueShift, const
6464

6565
// titleAddText needs to be const char* for tr()
6666
NetworkStyle::NetworkStyle(const QString &_appName, const int iconColorHueShift, const int iconColorSaturationReduction,
67-
const char *_macIconPath, const char *_titleAddText, const std::string &networkId):
67+
const char *_macIconPath, const char *_titleAddText):
6868
appName(_appName),
6969
titleAddText(qApp->translate("SplashScreen", _titleAddText)),
7070
badgeColor(QColor(0, 141, 228)) // default badge color is the original Dash's blue, regardless of the current theme
@@ -118,8 +118,7 @@ const NetworkStyle* NetworkStyle::instantiate(const std::string& networkId)
118118
network_style.iconColorHueShift,
119119
network_style.iconColorSaturationReduction,
120120
network_style.macIconPath,
121-
titleAddText.c_str(),
122-
networkId);
121+
titleAddText.c_str());
123122
}
124123
}
125124
return nullptr;

src/qt/networkstyle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class NetworkStyle
3232

3333
private:
3434
NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction,
35-
const char *macIconPath, const char *titleAddText, const std::string &networkId);
35+
const char *macIconPath, const char *titleAddText);
3636

3737
QString appName;
3838
QIcon appIcon;

0 commit comments

Comments
 (0)