diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-21 00:32:46 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-21 00:32:46 +0400 |
commit | 6059265e35d44348bb369bcb6254670dc84a7391 (patch) | |
tree | 2397022581de051fb96e642132b2b109df5f21b7 | |
parent | 0be32210ecffdd2d04ea144e44eecaedbf1623f9 (diff) |
remove unused code
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5209 10f7b99b-c216-0410-bff0-8a66a9350fd8
-rw-r--r-- | src/mpc-hc/AppSettings.cpp | 13 | ||||
-rw-r--r-- | src/mpc-hc/AppSettings.h | 5 |
2 files changed, 1 insertions, 17 deletions
diff --git a/src/mpc-hc/AppSettings.cpp b/src/mpc-hc/AppSettings.cpp index 785313be7..5f5762fe0 100644 --- a/src/mpc-hc/AppSettings.cpp +++ b/src/mpc-hc/AppSettings.cpp @@ -892,19 +892,6 @@ void CAppSettings::UpdateData(bool fSave) return;
}
- iDXVer = 0;
- CRegKey dxver;
- if (ERROR_SUCCESS == dxver.Open(HKEY_LOCAL_MACHINE, _T("SOFTWARE\\Microsoft\\DirectX"), KEY_READ)) {
- CString str;
- ULONG len = 64;
- if (ERROR_SUCCESS == dxver.QueryStringValue(_T("Version"), str.GetBuffer(len), &len)) {
- str.ReleaseBuffer(len);
- int ver[4];
- _stscanf_s(str, _T("%d.%d.%d.%d"), ver + 0, ver + 1, ver + 2, ver + 3);
- iDXVer = ver[1];
- }
- }
-
// Set interface language first!
language = (LANGID)pApp->GetProfileInt(IDS_R_SETTINGS, IDS_RS_LANGUAGE, -1);
if (language == (LANGID) - 1) {
diff --git a/src/mpc-hc/AppSettings.h b/src/mpc-hc/AppSettings.h index 956f93152..414db78ba 100644 --- a/src/mpc-hc/AppSettings.h +++ b/src/mpc-hc/AppSettings.h @@ -234,9 +234,7 @@ public: return (cmd > 0 && cmd == wc.cmd);
}
- CString GetName() const {
- return ResStr(dwname);
- }
+ CString GetName() const { return ResStr(dwname); }
void Restore() {
*(ACCEL*)this = backup;
@@ -333,7 +331,6 @@ public: // Added a Debug display to the screen (/debug option)
bool fShowDebugInfo;
- int iDXVer;
int iAdminOption;
UINT nCS; // Control state for toolbars
|