Skip to content

Conversation

@brson
Copy link
Contributor

@brson brson commented Apr 17, 2013

This builds on #5909. I've been combing through the pipes code to understand it and started refactoring a bit.

  • Removes pipes::spawn_* functions. These are not particularly useful since they deal with low-level pipes types.
  • Inlines the protocol-compiled definitions of oneshot and streamp. These are the only two uses of the protocol compiler in core and I'm inlining them so I can understand what they are doing as I work on pipes. I may un-inline them in the future.
  • Removes redundant functions from core::comm
  • Change the constructors to use the new convention

brson added 8 commits April 18, 2013 14:07
These are only used in test cases; pipes isn't the right place for them;
they are unnecessary.

Conflicts:
	src/libcore/rt/uv/mod.rs
I want to be able to see what is going on
`send`, etc. are never used. I've left the functions for oneshot pipes
because by-value methods don't work.
bors added a commit that referenced this pull request Apr 18, 2013
This builds on #5909. I've been combing through the pipes code to understand it and started refactoring a bit.

* Removes pipes::spawn_* functions. These are not particularly useful since they deal with low-level pipes types.
* Inlines the protocol-compiled definitions of `oneshot` and `streamp`. These are the only two uses of the protocol compiler in core and I'm inlining them so I can understand what they are doing as I work on pipes. I may un-inline them in the future.
* Removes redundant functions from core::comm
* Change the constructors to use the `new` convention
@bors bors closed this Apr 18, 2013
@bors bors merged commit decd390 into rust-lang:incoming Apr 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants