[Bbs2ch-cvs 415] [397] すでに使っていないコードを削除

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 3月 2日 (日) 22:35:10 JST


Revision: 397
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=397
Author:   flyson
Date:     2008-03-02 22:35:09 +0900 (Sun, 02 Mar 2008)

Log Message:
-----------
すでに使っていないコードを削除

Modified Paths:
--------------
    trunk/bbs2chreader/components/b2rServer.js


-------------- next part --------------
Modified: trunk/bbs2chreader/components/b2rServer.js
===================================================================
--- trunk/bbs2chreader/components/b2rServer.js	2008-03-01 09:22:43 UTC (rev 396)
+++ trunk/bbs2chreader/components/b2rServer.js	2008-03-02 13:35:09 UTC (rev 397)
@@ -279,18 +279,9 @@
 		this._getData = new Array();
 
 		this._requestBuffer = "";
-		this._input.asyncWait(this, 0, 0, this._getMainThread());
+		this._input.asyncWait(this, 0, 0, null);
 	},
 
-	_getMainThread: function(){
-		if("@mozilla.org/thread-manager;1" in Components.classes){
-			return Cc["@mozilla.org/thread-manager;1"].getService().mainThread;
-		}else{
-			var eventQueueService = XPC.getService("@mozilla.org/event-queue-service;1", "nsIEventQueueService");
-			return eventQueueService.getSpecialEventQueue(Ci.nsIEventQueueService.UI_THREAD_EVENT_QUEUE);
-		}
-	},
-
 	onInputStreamReady: function(aInput){
 		var available = aInput.available();
 		var bInputStream = XPC.createInstance("@mozilla.org/binaryinputstream;1", "nsIBinaryInputStream");
@@ -299,7 +290,7 @@
 		if((/\r\n\r\n/).test(this._requestBuffer)){
 			this._parseRequestData();
 		}else{
-			this._input.asyncWait(this, 0, 0, this._getMainThread());
+			this._input.asyncWait(this, 0, 0, null);
 		}
 	},
 


bbs2ch-cvs メーリングリストの案内
Back to archive index