]> git.saurik.com Git - wxWidgets.git/commitdiff
Reverting wxAppTraits GSocket patch
authorDavid Elliott <dfe@tgwbd.org>
Mon, 19 Jan 2004 18:40:45 +0000 (18:40 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 19 Jan 2004 18:40:45 +0000 (18:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/apptrait.h
src/common/appbase.cpp
src/common/appcmn.cpp
src/unix/gsocket.cpp

index 2d8e282c993c62c91ed2e9c991cf7a58954c8949..dcc488e1e24bec056e123bdbd1094a6177a3c982 100644 (file)
@@ -29,9 +29,6 @@ extern "C"
     struct GSocketGUIFunctionsTable;
 }
 
-// FIXME: Eventually unify Mac OS 9
-class GSocketBSD;
-
 // ----------------------------------------------------------------------------
 // toolkit information
 // ----------------------------------------------------------------------------
@@ -116,10 +113,6 @@ public:
 #if wxUSE_SOCKETS
     // return table of GUI callbacks for GSocket code or NULL in wxBase
     virtual GSocketGUIFunctionsTable* GetSocketGUIFunctionsTable() = 0;
-
-    // return a new GSocket with the EventLoop_* stuff implemented.
-    // or at least stubbed (i.e. wxBase)
-    virtual GSocketBSD* CreateGSocket() = 0;
 #endif
 
 
@@ -175,7 +168,6 @@ public:
     virtual wxRendererNative *CreateRenderer();
 #if wxUSE_SOCKETS
     virtual GSocketGUIFunctionsTable* GetSocketGUIFunctionsTable();
-    virtual GSocketBSD* CreateGSocket();
 #endif
 
 #ifdef __WXDEBUG__
@@ -206,9 +198,6 @@ public:
     virtual wxRendererNative *CreateRenderer();
 #if wxUSE_SOCKETS
     virtual GSocketGUIFunctionsTable* GetSocketGUIFunctionsTable();
-    // return a new GSocket with the EventLoop_* stuff implemented.
-    // TODO: Remove this because each GUI should implement it separately
-    virtual GSocketBSD* CreateGSocket();
 #endif
 
 #ifdef __WXDEBUG__
index 941c8aa71b2624293b90505cffab93c24a206700..706c1c97c892fd40ef326efc181d9a4e02952a81 100644 (file)
     #include "wx/fontmap.h"
 #endif // wxUSE_FONTMAP
 
-#if wxUSE_SOCKETS
-    #include "wx/gsocket.h"
-#endif // wxUSE_SOCKETS
-
 #if defined(__WXMAC__)
     // VZ: MacTypes.h is enough under Mac OS X (where I could test it) but
     //     I don't know which headers are needed under earlier systems so
@@ -479,16 +475,6 @@ GSocketGUIFunctionsTable* wxConsoleAppTraitsBase::GetSocketGUIFunctionsTable()
 {
     return NULL;
 }
-
-// TODO: Use a different class that only stubs out the event loop functions
-GSocketBSD* wxConsoleAppTraitsBase::CreateGSocket()
-{
-#ifdef wxUSE_GSOCKET_CPLUSPLUS
-    return new GSocketBSDGUIShim();
-#else
-    return NULL;
-#endif
-}
 #endif
 
 // ----------------------------------------------------------------------------
index 5bfa14b7f6bfbe7d78078d0296391c524760ed36..c6e0fc945bdbb8abaac00f8d38701d6055c8db65 100644 (file)
@@ -605,14 +605,5 @@ GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable()
 #endif // !__WXMAC__ || __DARWIN__
 }
 
-GSocketBSD* wxGUIAppTraitsBase::CreateGSocket()
-{
-#ifdef wxUSE_GSOCKET_CPLUSPLUS
-    return new GSocketBSDGUIShim();
-#else
-    return NULL;
-#endif
-}
-
 #endif
 
index 33785cc31f93aff3bff0fe5796cee6c673c339ea..28bbb981941fa3c88dfcfd70f23e7726b0889720 100644 (file)
@@ -1404,7 +1404,7 @@ void GSocketBSD::Detected_Write()
 /* Compatibility functions for GSocket */
 GSocket *GSocket_new(void)
 {
-    GSocket *newsocket = wxTheApp->GetTraits()->CreateGSocket();
+    GSocket *newsocket = new GSocketBSDGUIShim();
     if(newsocket->IsOk())
         return newsocket;
     delete newsocket;