summaryrefslogtreecommitdiff
blob: 44e1988f8fa174dea2812c0838d6482acc7e0305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
--- org/gudy/azureus2/platform/PlatformManagerFactory.java.orig	2007-01-26 12:59:30.000000000 -0600
+++ org/gudy/azureus2/platform/PlatformManagerFactory.java	2007-01-26 13:00:08.000000000 -0600
@@ -40,46 +40,9 @@
 	public static PlatformManager
 	getPlatformManager()
 	{
-		try{
-			class_mon.enter();
-		
-			if ( platform_manager == null ){
-										  
-				try{
-					if ( getPlatformType() == PlatformManager.PT_WINDOWS ){
-						
-						platform_manager = org.gudy.azureus2.platform.win32.PlatformManagerImpl.getSingleton();
-						
-					}else if( getPlatformType() == PlatformManager.PT_MACOSX ){
-						
-	                    platform_manager = org.gudy.azureus2.platform.macosx.PlatformManagerImpl.getSingleton();
-	                    
-					}else if( getPlatformType() == PlatformManager.PT_UNIX ){
-						
-            platform_manager = org.gudy.azureus2.platform.unix.PlatformManagerImpl.getSingleton();
-
-					}
-				}catch( PlatformManagerException e ){
-					
-						// exception will already have been logged
-					
-				}catch( Throwable e ){
-					
-					Debug.printStackTrace(e);
-				}
-			}
+		platform_manager = org.gudy.azureus2.platform.dummy.PlatformManagerImpl.getSingleton();
 			
-			if ( platform_manager == null ){
-				
-				platform_manager = org.gudy.azureus2.platform.dummy.PlatformManagerImpl.getSingleton();
-			}
-			
-			return( platform_manager );
-			
-		}finally{
-			
-			class_mon.exit();
-		}
+		return( platform_manager );
 	}
 	
 	public static int