Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
inkrement committed Dec 30, 2013
1 parent 4cf380f commit 4be1b9b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/Messenger/src/peers/peer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ abstract class Peer{
///root logging object
static final Logger parent_log = new Logger("Peer");

//list of all local peers
static Map<String, Peer> peers;

Logger log;

///number of all local peer instances
Expand All @@ -34,10 +31,13 @@ abstract class Peer{
//set name of this peer instance
this.name = (name.length < 1)?"peer" + (++num).toString():name;

<<<<<<< HEAD
//is name is unique?
if(peers.keys.contains(this.name))
throw new StateError("peer with name ${this.name} already exists!");

=======
>>>>>>> parent of 88b084f... added static list of all peers
//setup logger
hierarchicalLoggingEnabled = true;
log = new Logger("Peer.${this.runtimeType}.${this.name}");
Expand All @@ -49,9 +49,6 @@ abstract class Peer{
newMessageController = new StreamController<NewMessageEvent>.broadcast();

log.info("new peer: #${num.toString()} ${this.name} ");

//add instance reference to peerlist
peers[this.name] = this;
}


Expand Down

0 comments on commit 4be1b9b

Please sign in to comment.