From f3599342f6e85e01a351fb35bad0ee518b2a4980 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 13 Mar 2004 18:26:42 +0000 Subject: [PATCH] remove-extraneous-code-20040312 Remove calls to obtain the netbios name which is placed into variables which are never referenced. --- src/WINNT/client_config/dlg_binding.cpp | 2 +- src/WINNT/client_config/drivemap.cpp | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/WINNT/client_config/dlg_binding.cpp b/src/WINNT/client_config/dlg_binding.cpp index a455ae81f..5ccfcdbaa 100644 --- a/src/WINNT/client_config/dlg_binding.cpp +++ b/src/WINNT/client_config/dlg_binding.cpp @@ -107,7 +107,7 @@ BOOL CALLBACK Binding_DlgProc (HWND hDlg, UINT msg, WPARAM wp, LPARAM lp) lana_GetAfsNameString(nLanAdapter, isGateway, name); SetDlgItemText (hDlg, IDC_BINDING_MESSAGE, name); - EnableWindow(GetDlgItem(hDlg,IDC_NICSELECTION),(nLanAdapter!=-1)); + EnableWindow(GetDlgItem(hDlg,IDC_NICSELECTION),(nLanAdapter!=-1)); break; } case IDC_NICSELECTION: diff --git a/src/WINNT/client_config/drivemap.cpp b/src/WINNT/client_config/drivemap.cpp index 26753dcbd..cedc039c9 100644 --- a/src/WINNT/client_config/drivemap.cpp +++ b/src/WINNT/client_config/drivemap.cpp @@ -622,16 +622,6 @@ BOOL ActivateDriveMap (TCHAR chDrive, LPTSTR pszMapping, LPTSTR pszSubmountReq, } // We now have a submount name and drive letter--map the network drive. - // - TCHAR szClient[ MAX_PATH ]; - GetClientNetbiosName (szClient); - - TCHAR szLocal[ MAX_PATH ] = TEXT("*:"); - szLocal[0] = chDrive; - - TCHAR szRemote[ MAX_PATH ]; - wsprintf (szRemote, TEXT("\\\\%s\\%s"), szClient, szSubmount); - DWORD rc=MountDOSDrive(chDrive,szSubmount,fPersistent); if (rc == NO_ERROR) return TRUE; -- 2.39.5