From 003da6c0ef5eeb17b267bca42205457d022df3da Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Wed, 17 Jul 2013 20:11:03 +0200 Subject: [PATCH] Small code cleanup Signed-off-by: Sven Strickroth --- src/TortoiseProc/Settings/SetMainPage.cpp | 15 +-------------- src/TortoiseProc/Settings/SetMainPage.h | 3 +-- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/TortoiseProc/Settings/SetMainPage.cpp b/src/TortoiseProc/Settings/SetMainPage.cpp index 09e6443a5..d986ef02a 100644 --- a/src/TortoiseProc/Settings/SetMainPage.cpp +++ b/src/TortoiseProc/Settings/SetMainPage.cpp @@ -41,7 +41,7 @@ CSetMainPage::CSetMainPage() , m_dwLanguage(0) { m_regLanguage = CRegDWORD(_T("Software\\TortoiseGit\\LanguageID"), 1033); - CString temp=CRegString(REG_MSYSGIT_INSTALL,_T(""),FALSE,HKEY_LOCAL_MACHINE);; + CString temp = CRegString(REG_MSYSGIT_INSTALL, _T(""), FALSE, HKEY_LOCAL_MACHINE); if(!temp.IsEmpty()) temp+=_T("bin"); m_regMsysGitPath = CRegString(REG_MSYSGIT_PATH,temp,FALSE); @@ -72,7 +72,6 @@ void CSetMainPage::DoDataExchange(CDataExchange* pDX) BEGIN_MESSAGE_MAP(CSetMainPage, ISettingsPropPage) ON_CBN_SELCHANGE(IDC_LANGUAGECOMBO, OnModified) // ON_EN_CHANGE(IDC_TEMPEXTENSIONS, OnModified) - ON_BN_CLICKED(IDC_EDITCONFIG, OnBnClickedEditconfig) ON_BN_CLICKED(IDC_CHECKNEWERVERSION, OnModified) ON_BN_CLICKED(IDC_CHECKNEWERBUTTON, OnBnClickedChecknewerbutton) ON_BN_CLICKED(IDC_SOUNDS, OnBnClickedSounds) @@ -223,18 +222,6 @@ BOOL CSetMainPage::OnApply() } } -void CSetMainPage::OnBnClickedEditconfig() -{ -#if 0 - TCHAR buf[MAX_PATH]; - SVN::EnsureConfigFile(); - SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, buf); - CString path = buf; - path += _T("\\Subversion\\config"); - CAppUtils::StartTextViewer(path); -#endif -} - void CSetMainPage::OnBnClickedChecknewerbutton() { CAppUtils::RunTortoiseGitProc(_T("/command:updatecheck /visible"), false, false); diff --git a/src/TortoiseProc/Settings/SetMainPage.h b/src/TortoiseProc/Settings/SetMainPage.h index 5bc05f763..6aaefb5a7 100644 --- a/src/TortoiseProc/Settings/SetMainPage.h +++ b/src/TortoiseProc/Settings/SetMainPage.h @@ -1,6 +1,6 @@ // TortoiseGit - a Windows shell extension for easy version control -// Copyright (C) 2008-2011 - TortoiseGit +// Copyright (C) 2008-2011,2013 - TortoiseGit // Copyright (C) 2003-2008 - TortoiseSVN // This program is free software; you can redistribute it and/or @@ -50,7 +50,6 @@ protected: virtual BOOL OnApply(); afx_msg void OnModified(); afx_msg void OnMsysGitPathModify(); - afx_msg void OnBnClickedEditconfig(); afx_msg void OnBnClickedChecknewerbutton(); afx_msg void OnBnClickedSounds(); afx_msg void OnBrowseDir(); -- 2.11.4.GIT