]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/utils.cpp
don't pass false as a wxWindowID
[wxWidgets.git] / src / os2 / utils.cpp
index 093e19236206e345e1a4f2b3fc18869a7a5eb0b9..50a68b9b49270726996d870e920aa364bf1d0488 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      David Webster
 // Modified by:
 // Created:     09/17/99
-// RCS-ID:      $Id$
 // Copyright:   (c) David Webster
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -84,7 +83,7 @@ bool wxGetHostName( wxChar* zBuf, int nMaxSize )
     const wxChar*  zDefaultHost = wxT("noname");
 
     if ((zSysname = wxGetenv(wxT("SYSTEM_NAME"))) == NULL &&
-       (zSysname = wxGetenv(wxT("HOSTNAME"))) == NULL)
+            (zSysname = wxGetenv(wxT("HOSTNAME"))) == NULL)
     {
         ::PrfQueryProfileString( HINI_PROFILE
                                 ,(PSZ)WX_SECTION
@@ -240,14 +239,14 @@ bool wxGetEnv(const wxString& var, wxString *value)
 static bool wxDoSetEnv(const wxString& variable, const char *value)
 {
 #if defined(HAVE_SETENV)
-    if ( !value ) 
-    { 
-#ifdef HAVE_UNSETENV 
-        return unsetenv(variable.mb_str()) == 0; 
-#else 
-        value = wxT(""); // mustn't pass NULL to setenv() 
-#endif 
-    } 
+    if ( !value )
+    {
+#ifdef HAVE_UNSETENV
+        return unsetenv(variable.mb_str()) == 0;
+#else
+        value = wxT(""); // mustn't pass NULL to setenv()
+#endif
+    }
     return setenv(variable.mb_str(), value, 1 /* overwrite */) == 0;
 #elif defined(HAVE_PUTENV)
     wxString s = variable;
@@ -306,12 +305,6 @@ void wxFlushEvents()
 //  wxYield();
 }
 
-// Emit a beeeeeep
-void wxBell()
-{
-    DosBeep(1000,1000); // 1kHz during 1 sec.
-}
-
 wxString wxGetOsDescription()
 {
     wxString strVer(wxT("OS/2"));
@@ -474,7 +467,7 @@ bool wxGetDiskSpace(const wxString& path,
         {
            // to try to avoid 32-bit overflow, let's not multiply right away
             // (num of alloc units)
-            *pTotal = fsaBuf.cUnit;  
+            *pTotal = fsaBuf.cUnit;
             // * (num of sectors per alloc unit) * (num of bytes per sector)
             (*pTotal) *= fsaBuf.cSectorUnit * fsaBuf.cbSector;
         }
@@ -486,7 +479,7 @@ bool wxGetDiskSpace(const wxString& path,
         return true;
     }
 }
+
 wxString wxPMErrorToStr(ERRORID vError)
 {
     wxString sError;
@@ -642,12 +635,3 @@ wxString wxPMErrorToStr(ERRORID vError)
     }
     return sError;
 } // end of wxPMErrorToStr
-
-// replacement for implementation in unix/utilsunx.cpp,
-// to be used by all X11 based ports.
-struct wxEndProcessData;
-
-void wxHandleProcessTermination(wxEndProcessData *WXUNUSED(proc_data))
-{
-    // For now, just do nothing. To be filled in as needed.
-}