]> granicus.if.org Git - nethack/commitdiff
remove obsolete function and references
authornhmall <nhmall@nethack.org>
Tue, 15 Feb 2022 13:13:27 +0000 (08:13 -0500)
committernhmall <nhmall@nethack.org>
Tue, 15 Feb 2022 13:13:27 +0000 (08:13 -0500)
include/extern.h
outdated/sys/share [moved from sys/share/nhlan.c with 100% similarity]
sys/windows/Makefile.mingw32
sys/windows/Makefile.msc
sys/windows/windsys.c

index 6e290ee489bdd9f56ffa1c594c646e5bfa10173f..965ed22667928ebaa292c88905a835755d76b1e9 100644 (file)
@@ -1660,7 +1660,6 @@ extern int dosuspend(void);
 #endif
 #endif /* TOS */
 #ifdef WIN32
-extern char *get_username(int *);
 extern void nt_regularize(char *);
 extern int(*nt_kbhit)(void);
 extern void Delay(int);
similarity index 100%
rename from sys/share/nhlan.c
rename to outdated/sys/share
index 9e66f5900e640c8175d6950a1a3f7661f490c4be..c41e46504565552fda6f76745d34304d3cbf400d 100644 (file)
@@ -720,7 +720,7 @@ COREOBJS = $(addsuffix .o, allmain alloc apply artifact attrib ball bones botl c
           hack hacklib insight invent isaac64 light lock \
           mail makemon mcastu mdlib mhitm mhitu minion mklev mkmap mkmaze mkobj mkroom \
           mon mondata monmove monst mplayer mthrowu muse music \
-          nhlan nhlobj nhlsel nhlua ntsound o_init objects objnam options \
+          nhlobj nhlsel nhlua ntsound o_init objects objnam options \
           pager pickup pline polyself potion pray priest quest questpgr \
           random read rect region restore rip rnd role rumors \
           safeproc save sfstruct shk shknam sit sounds sp_lev spell steal steed stubs symbols sys \
index 94cc55d2c98cce5e13a23e48e2eef640e21de755..81007178856b5cd2428962296cc2d574585429e1 100644 (file)
@@ -500,7 +500,7 @@ CURSESOBJ= $(O)cursdial.o $(O)cursinit.o $(O)cursinvt.o $(O)cursmain.o \
           $(O)cursmesg.o $(O)cursmisc.o $(O)cursstat.o $(O)curswins.o
 
 SOBJ   = $(O)windmain.o $(O)windsys.o $(O)win10.o \
-       $(O)safeproc.o $(O)nhlan.o $(SOUND)
+       $(O)safeproc.o $(SOUND)
 
 OBJS   = $(MDLIB) \
        $(VOBJ01) $(VOBJ02) $(VOBJ03) $(VOBJ04) $(VOBJ05) \
index d0cef911a51666ecc78da737efdbf661e4c1d5c4..98f6fa525ffbe6d3190ec17055e6012f04151649 100644 (file)
@@ -176,38 +176,6 @@ void nt_regularize(char* s) /* normalize file name */
             *lp = '_';
 }
 
-/*
- * This is used in nhlan.c to implement some of the LAN_FEATURES.
- */
-char *
-get_username(int *lan_username_size)
-{
-    static TCHAR username_buffer[BUFSZ];
-    DWORD i = BUFSZ - 1;
-    BOOL allowUserName = TRUE;
-
-    Strcpy(username_buffer, "NetHack");
-
-#ifndef WIN32CON
-    /* Our privacy policy for the windows store version of nethack makes
-     * a promise about not collecting any personally identifiable information.
-     * Do not allow getting user name if we being run from windows store
-     * version of nethack.  In 3.7, we should remove use of username.
-     */
-    allowUserName = !win10_is_desktop_bridge_application();
-#endif
-
-    if (allowUserName) {
-        /* i gets updated with actual size */
-        if (GetUserName(username_buffer, &i))
-            username_buffer[i] = '\0';
-    }
-
-    if (lan_username_size)
-        *lan_username_size = strlen(username_buffer);
-    return username_buffer;
-}
-
 #if 0
 char *getxxx(void)
 {