Skip to content

Commit 5041023

Browse files
committed
---
yaml --- r: 41437 b: refs/heads/snap-stage3 c: c6e8af4 h: refs/heads/master i: 41435: 5c03417 v: v3
1 parent 1bb44cd commit 5041023

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 89c8ef792f7e7641abfac421ba1e8f90384883ec
4+
refs/heads/snap-stage3: c6e8af446fa7fcd6b2362489293f2e6c5b98ffc3
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustdoc/util.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,3 @@ pub struct NominalOp<T> {
2121
impl<T: Copy> NominalOp<T>: Clone {
2222
fn clone(&self) -> NominalOp<T> { copy *self }
2323
}
24-
25-
pub fn spawn_listener<A: Owned>(
26-
f: fn~(oldcomm::Port<A>)) -> oldcomm::Chan<A> {
27-
let setup_po = oldcomm::Port();
28-
let setup_ch = oldcomm::Chan(&setup_po);
29-
do task::spawn |move f| {
30-
let po = oldcomm::Port();
31-
let ch = oldcomm::Chan(&po);
32-
oldcomm::send(setup_ch, ch);
33-
f(move po);
34-
}
35-
oldcomm::recv(setup_po)
36-
}
37-
38-
pub fn spawn_conversation<A: Owned, B: Owned>
39-
(f: fn~(oldcomm::Port<A>, oldcomm::Chan<B>))
40-
-> (oldcomm::Port<B>, oldcomm::Chan<A>) {
41-
let from_child = oldcomm::Port();
42-
let to_parent = oldcomm::Chan(&from_child);
43-
let to_child = do spawn_listener |move f, from_parent| {
44-
f(from_parent, to_parent)
45-
};
46-
(from_child, to_child)
47-
}

0 commit comments

Comments
 (0)