| 
     
      
      
      From: <kp...@us...> - 2021-03-25 21:40:02
      
     
   | 
Revision: 25434
          http://sourceforge.net/p/jedit/svn/25434
Author:   kpouer
Date:     2021-03-25 21:40:00 +0000 (Thu, 25 Mar 2021)
Log Message:
-----------
remove deprecated methods
Modified Paths:
--------------
    jEdit/trunk/org/gjt/sp/jedit/io/VFSManager.java
Modified: jEdit/trunk/org/gjt/sp/jedit/io/VFSManager.java
===================================================================
--- jEdit/trunk/org/gjt/sp/jedit/io/VFSManager.java	2021-03-24 22:27:12 UTC (rev 25433)
+++ jEdit/trunk/org/gjt/sp/jedit/io/VFSManager.java	2021-03-25 21:40:00 UTC (rev 25434)
@@ -32,12 +32,10 @@
 import java.lang.reflect.InvocationTargetException;
 import java.util.*;
 
-import org.gjt.sp.jedit.bufferio.IoTask;
 import org.gjt.sp.jedit.gui.ErrorListDialog;
 import org.gjt.sp.jedit.msg.VFSUpdate;
 import org.gjt.sp.jedit.*;
 import org.gjt.sp.util.Log;
-import org.gjt.sp.util.Task;
 import org.gjt.sp.util.TaskManager;
 import org.gjt.sp.util.ThreadUtilities;
 import org.gjt.sp.util.AwtRunnableQueue;
@@ -226,45 +224,6 @@
 		return TaskManager.instance.countIoTasks();
 	} //}}}
 
-	//{{{ runInAWTThread() method
-	/**
-	 * Executes the specified runnable in the AWT thread once all
-	 * pending I/O requests are complete. Only in one case the
-	 * <code>Runnable</code> is executed directly: when the current thread
-	 * is EDT and there are no I/O requests active or queued
-	 * at the moment of call.
-	 * @since jEdit 2.5pre1
-	 * @deprecated Using that method, when you run a task in AWT Thread,
-	 * it will wait for all background task causing some unwanted delays.
-	 * If you need calling a task after a background work, please add your
-	 * runnable to the EDT thread yourself at the end of the background task
-	 * @see org.gjt.sp.util.ThreadUtilities#runInDispatchThread(Runnable)
-	 * @see org.gjt.sp.util.ThreadUtilities#runInDispatchThreadAndWait(Runnable)
-	 */
-	@Deprecated
-	public static void runInAWTThread(Runnable run)
-	{
-		AwtRunnableQueue.INSTANCE.runAfterIoTasks(run);
-	} //}}}
-
-	//{{{ runInWorkThread() method
-	/**
-	 * Executes the specified runnable in one of the I/O threads.
-	 * @since jEdit 2.6pre2
-	 * @deprecated You should not use this method, this threadpool
-	 * links the AWT Threads and Work threads.
-	 * @see org.gjt.sp.util.ThreadUtilities#runInBackground(org.gjt.sp.util.Task)
-	 * @see org.gjt.sp.util.ThreadUtilities#runInBackground(Runnable)
-	 */
-	@Deprecated
-	public static void runInWorkThread(Task run)
-	{
-		if(!(run instanceof IoTask))
-			throw new IllegalArgumentException();
-
-		ThreadUtilities.runInBackground(run);
-	} //}}}
-
 	//}}}
 
 	//{{{ error() method
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |