aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/net/util.rs
diff options
context:
space:
mode:
authorLars Bergstrom <lars@lars.com>2014-03-14 17:06:40 -0500
committerLars Bergstrom <lars@lars.com>2014-03-18 22:00:48 -0500
commita6100563a6e43471ae43fb155113bc2026992f78 (patch)
tree7e7fbd7976c3da12ff463d6ffbeb1a3a336ae7d3 /src/components/net/util.rs
parentfe22598c56092880b3e947b4fc9466d1a700e17e (diff)
downloadservo-a6100563a6e43471ae43fb155113bc2026992f78.tar.gz
servo-a6100563a6e43471ae43fb155113bc2026992f78.zip
Rust upgrade for new master rebase
Diffstat (limited to 'src/components/net/util.rs')
-rw-r--r--src/components/net/util.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/components/net/util.rs b/src/components/net/util.rs
deleted file mode 100644
index 7a8ab5bb43b..00000000000
--- a/src/components/net/util.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-/*use std::comm::{Chan, Port};
-use servo_util::task::spawn_named;*/
-
-
- // FIXME: code cloned from spawn_listener due to:
- // error: internal compiler error: cannot relate bound region: ReLateBound(6270, BrNamed(syntax::ast::DefId{krate: 0u32, node: 6294u32}, a)) <= ReInfer(1)
- //This message reflects a bug in the Rust compiler.
-
-/*
-pub fn spawn_listener<'a, A: Send, S: IntoMaybeOwned<'a>>(name: S, f: proc(Port<A>)) -> Chan<A> {
- let (setup_port, setup_chan) = Chan::new();
- spawn_named(name, proc() {
- let (port, chan) = Chan::new();
- setup_chan.send(chan);
- f(port);
- });
- setup_port.recv()
-}
-*/ \ No newline at end of file