[Ttssh2-commit] [8928] 不要になったログダイアログのコードを削除

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2020年 8月 29日 (土) 00:42:49 JST


Revision: 8928
          https://osdn.net/projects/ttssh2/scm/svn/commits/8928
Author:   zmatsuo
Date:     2020-08-29 00:42:49 +0900 (Sat, 29 Aug 2020)
Log Message:
-----------
不要になったログダイアログのコードを削除

Modified Paths:
--------------
    trunk/teraterm/ttpfile/ttfile.c

-------------- next part --------------
Modified: trunk/teraterm/ttpfile/ttfile.c
===================================================================
--- trunk/teraterm/ttpfile/ttfile.c	2020-08-28 15:42:38 UTC (rev 8927)
+++ trunk/teraterm/ttpfile/ttfile.c	2020-08-28 15:42:49 UTC (rev 8928)
@@ -195,9 +195,6 @@
 	char uimsg[MAX_UIMSG];
 	char FNFilter[sizeof(FileSendFilter)*3], *pf;
 	OPENFILENAME ofn;
-#if 0
-	LONG optl;
-#endif
 	WORD optw;
 	char TempDir[MAXPATHLEN];
 	BOOL Ok;
@@ -223,12 +220,6 @@
 			pf = pf + strlen(pf) + 1;
 		}
 		break;
-#if 0
-	case GTF_LOG:
-		get_lang_msg("FILEDLG_TRANS_TITLE_LOG", uimsg, sizeof(uimsg), TitLog, UILanguageFile);
-		strncat_s(fv->DlgCaption, sizeof(fv->DlgCaption), uimsg, _TRUNCATE);
-		break;
-#endif
 	case GTF_BP:
 		get_lang_msg("FILEDLG_TRANS_TITLE_BPSEND", uimsg, sizeof(uimsg), TitBPSend, UILanguageFile);
 		strncat_s(fv->DlgCaption, sizeof(fv->DlgCaption), uimsg, _TRUNCATE);
@@ -255,36 +246,9 @@
 	ofn.nFilterIndex = 1;
 	ofn.lpstrFile = fv->FullName;
 	ofn.nMaxFile = sizeof(fv->FullName);
+	ofn.lpstrInitialDir = CurDir;
 
-#if 0
-	if (FuncId == GTF_LOG) {
-		DWORD logdir = GetFileAttributes(fv->LogDefaultPath);
-		// \x83\x8D\x83O\x95ۑ\xB6\x82̏ꍇ\x82͏\x89\x8A\xFA\x83t\x83H\x83\x8B\x83_\x82\xF0\x8C\x88\x82ߑł\xBF\x82\xB5\x82Ȃ\xA2\x82悤\x82ɂ\xB7\x82\xE9\x81B(2007.8.24 yutaka)
-		if (logdir != INVALID_FILE_ATTRIBUTES && logdir & FILE_ATTRIBUTE_DIRECTORY) {
-			// LogDefaultPath\x82\xAA\x91\xB6\x8D݂\xB7\x82\xE9\x82Ȃ\xE7\x81A\x82\xBB\x82\xB1\x82\xF0\x8F\x89\x8A\xFA\x83t\x83H\x83\x8B\x83_\x82ɂ\xB7\x82\xE9\x81B(2007.11.30 maya)
-			ofn.lpstrInitialDir = fv->LogDefaultPath;
-		}
-		else {
-			ofn.lpstrInitialDir = NULL;
-		}
-	} else
-#endif
-	{
-		ofn.lpstrInitialDir = CurDir;
-	}
-
 	switch (FuncId) {
-#if 0
-	case GTF_LOG:
-		ofn.Flags = OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT;
-		ofn.Flags |= OFN_ENABLETEMPLATE | OFN_ENABLEHOOK | OFN_EXPLORER | OFN_ENABLESIZING;
-		ofn.lpTemplateName = MAKEINTRESOURCE(IDD_FOPT);
-
-		ofn.lpfnHook = LogFnHook;
-		optl = *Option;
-		ofn.lCustData = (LPARAM)&optl;
-		break;
-#endif
 	case GTF_SEND:
 		ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
 		ofn.Flags |= OFN_ENABLETEMPLATE | OFN_ENABLEHOOK | OFN_EXPLORER | OFN_ENABLESIZING;
@@ -301,43 +265,14 @@
 
 	ofn.Flags |= OFN_SHOWHELP;
 
-#if 0
-	if (FuncId != GTF_LOG) {
-		// \x83t\x83B\x83\x8B\x83^\x82\xAA\x83\x8F\x83C\x83\x8B\x83h\x83J\x81[\x83h\x82ł͂Ȃ\xAD\x81A\x82\xBB\x82̃t\x83@\x83C\x83\x8B\x82\xAA\x91\xB6\x8D݂\xB7\x82\xE9\x8Fꍇ
-		// \x82\xA0\x82炩\x82\xB6\x82߃f\x83t\x83H\x83\x8B\x83g\x82̃t\x83@\x83C\x83\x8B\x96\xBC\x82\xF0\x93\xFC\x82\xEA\x82Ă\xA8\x82\xAD (2008.5.18 maya)
-		if (strlen(FileSendFilter) > 0 &&
-		    !isInvalidFileNameChar(FileSendFilter)) {
-			char file[MAX_PATH];
-			strncpy_s(file, sizeof(file), CurDir, _TRUNCATE);
-			AppendSlash(file, sizeof(file));
-			strncat_s(file, sizeof(file), FileSendFilter, _TRUNCATE);
-			if (_access(file, 0) == 0) {
-				strncpy_s(fv->FullName, sizeof(fv->FullName), FileSendFilter, _TRUNCATE);
-			}
-		}
-	}
-#endif
 	ofn.lpstrTitle = fv->DlgCaption;
 
 	ofn.hInstance = hInst;
 
-	// logging\x82̏ꍇ\x81A\x83I\x81[\x83v\x83\x93\x83_\x83C\x83A\x83\x8D\x83O\x82\xF0\x83Z\x81[\x83u\x83_\x83C\x83A\x83\x8D\x83O\x82֕ύX (2005.1.6 yutaka)
-#if 0
-	if (FuncId == GTF_LOG) {
-		Ok = GetSaveFileName(&ofn);
-	} else
-#endif
-	{
-		Ok = GetOpenFileName(&ofn);
-	}
+	Ok = GetOpenFileName(&ofn);
 
 	if (Ok) {
-#if 0
-		if (FuncId==GTF_LOG)
-			*Option = optl;
-		else
-#endif
-			*Option = (long)optw;
+		*Option = (long)optw;
 
 		fv->DirLen = ofn.nFileOffset;
 


Ttssh2-commit メーリングリストの案内
Back to archive index