X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FPlatform.java;h=00b00d2c8ea07bbc1bacbabd8cf9cca0e5e58d9e;hb=0b0673bbc7f06c5d5418d5ab7ad5961a464e2de0;hp=9c1d4299958da624623f7ec421a441d3261f23a9;hpb=7f5df8070a5551fe66abd11a589677e285ca62f8;p=org.ibex.core.git diff --git a/src/org/xwt/Platform.java b/src/org/xwt/Platform.java index 9c1d429..00b00d2 100644 --- a/src/org/xwt/Platform.java +++ b/src/org/xwt/Platform.java @@ -132,16 +132,6 @@ public class Platform { return _createPicture(b2,w,h); } - /** creates a socket object */ - public static Socket getSocket(String host, int port, boolean ssl, boolean negotiate) throws IOException { - return platform._getSocket(host, port, ssl, negotiate); - } - protected Socket _getSocket(String host, int port, boolean ssl, boolean negotiate) throws IOException { - Socket ret = ssl ? new TinySSL(host, port, negotiate) : new Socket(java.net.InetAddress.getByName(host), port); - ret.setTcpNoDelay(true); - return ret; - } - /** should return true if it is safe to supress full-surface dirties immediately after a window resize */ public static boolean supressDirtyOnResize() { return platform._supressDirtyOnResize(); } protected boolean _supressDirtyOnResize() { return false; } @@ -166,10 +156,6 @@ public class Platform { public static int getScreenHeight() { return platform._getScreenHeight(); } protected int _getScreenHeight() { return 480; } - /** returns the maximum number of threads that the XWT engine can create without adversely affecting the host OS */ - public static int maxThreads() { return platform._maxThreads(); } - protected int _maxThreads() { return 25; } - /** used to notify the user of very serious failures; usually used when logging is not working or unavailable */ protected void _criticalAbort(String message) { System.exit(-1); }