Mercurial > hg > RemoteEditor > REPSessionManager
diff rep/Session.java @ 356:b18c24dcc5d2
Before chaning put/join scheme for ditributed select.
author | kono |
---|---|
date | Sat, 18 Oct 2008 19:01:40 +0900 |
parents | 1e605880d49e |
children | 034acadc0cdc |
line wrap: on
line diff
--- a/rep/Session.java Fri Oct 17 22:11:34 2008 +0900 +++ b/rep/Session.java Sat Oct 18 19:01:40 2008 +0900 @@ -10,7 +10,6 @@ private String sessionName; private LinkedList<EditorPlus> editorList = new LinkedList<EditorPlus>(); private boolean isOwner = false; - private int eidSeed = 0; private Forwarder firstForwarder; public Session(int sid, String name, Forwarder editor) { @@ -65,17 +64,6 @@ return sessionName; } - public int newEid() { - int eid=0; - boolean flag = true; - while(flag) { - eid=eidSeed++; - for(EditorPlus e:editorList) { - if((flag = (eid==e.eid))) break; - } - } - return eid; - } public boolean deleteEditor(REPSocketChannel<REPCommand> channel) { boolean flag = false;