mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove ancient net.rs
This commit is contained in:
parent
b17fffa9d9
commit
5749ffcf7a
1 changed files with 0 additions and 33 deletions
|
@ -1,33 +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/. */
|
||||
|
||||
export uri, input_stream, channel, io_service, file_channel;
|
||||
|
||||
import uri::uri;
|
||||
|
||||
iface input_stream {
|
||||
fn close();
|
||||
fn read() -> ~[u8];
|
||||
}
|
||||
|
||||
iface channel {
|
||||
fn uri() -> uri;
|
||||
fn open() -> input_stream;
|
||||
}
|
||||
|
||||
iface io_service {
|
||||
fn new_uri(spec: ~str) -> uri;
|
||||
fn new_channel(uri: uri) -> channel;
|
||||
}
|
||||
|
||||
class file_channel: channel {
|
||||
let bogus : int;
|
||||
|
||||
new() {
|
||||
self.bogus = 0;
|
||||
}
|
||||
|
||||
fn uri() -> uri { fail }
|
||||
fn open() -> input_stream { fail }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue