remove-extraneous-code-20040312
authorJeffrey Altman <jaltman@mit.edu>
Sat, 13 Mar 2004 18:26:42 +0000 (18:26 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 13 Mar 2004 18:26:42 +0000 (18:26 +0000)
Remove calls to obtain the netbios name which is placed into
variables which are never referenced.

src/WINNT/client_config/dlg_binding.cpp
src/WINNT/client_config/drivemap.cpp

index a455ae8..5ccfcdb 100644 (file)
@@ -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:
index 26753dc..cedc039 100644 (file)
@@ -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;