diff --git a/src/Initialize.c b/src/Initialize.c
index 03bb59c89185f352f5ba9cfdb3676c01e92ad7df..5d2c92a1ef8ad63ba4581ca1f97bfeaab55d5262 100644
--- a/src/Initialize.c
+++ b/src/Initialize.c
@@ -101,12 +101,6 @@ in this Software without prior written authorization from The Open Group.
 #define XtInitialize _XtInitialize
 #endif                          /* (SUNSHLIB || AIXSHLIB) && SHAREDCODE */
 
-/*
- * hpux
- * Hand-patched versions of HP-UX prior to version 7.0 can usefully add
- * -DUSE_UNAME in the appropriate config file to get long hostnames.
- */
-
 #ifdef USG
 #define USE_UNAME
 #endif
diff --git a/src/Intrinsic.c b/src/Intrinsic.c
index 617196196c627c4f71f1b13e4ac865999ec57b44..e98be864f89b67d8ec2fb1c43a2696ec6bedfdae 100644
--- a/src/Intrinsic.c
+++ b/src/Intrinsic.c
@@ -1170,23 +1170,7 @@ static String
 ExtractLocaleName(String lang)
 {
 
-#if defined(hpux) || defined(CSRG_BASED) || defined(sun) || defined(SVR4) || defined(__osf__) || defined(AIXV3) || defined(WIN32) || defined (linux)
-#ifdef hpux
-/*
- * We need to discriminated between HPUX 9 and HPUX 10. The equivalent
- * code in Xlib in SetLocale.c does include locale.h via X11/Xlocale.h.
- */
-#include <locale.h>
-#ifndef _LastCategory
-    /* HPUX 9 and earlier */
-#define SKIPCOUNT 2
-#define STARTCHAR ':'
-#define ENDCHAR ';'
-#else
-    /* HPUX 10 */
-#define ENDCHAR ' '
-#endif
-#else
+#if defined(CSRG_BASED) || defined(sun) || defined(SVR4) || defined(__osf__) || defined(AIXV3) || defined(WIN32) || defined (linux)
 #ifdef WIN32
 #define SKIPCOUNT 1
 #define STARTCHAR '='
@@ -1207,7 +1191,6 @@ ExtractLocaleName(String lang)
 #endif
 #endif
 #endif
-#endif
 #endif
 
     String start;