[rygel] core: Remove now redundant vala work-arounds
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Remove now redundant vala work-arounds
- Date: Wed, 17 Nov 2010 15:15:34 +0000 (UTC)
commit 34fb03380f997cac19122ec8fbb509efeac6eda5
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Nov 17 17:13:04 2010 +0200
core: Remove now redundant vala work-arounds
src/rygel/rygel-http-post.vala | 4 +---
src/rygel/rygel-seekable-response.vala | 5 +----
2 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/rygel/rygel-http-post.vala b/src/rygel/rygel-http-post.vala
index 27bca01..8e2385b 100644
--- a/src/rygel/rygel-http-post.vala
+++ b/src/rygel/rygel-http-post.vala
@@ -97,9 +97,7 @@ internal class Rygel.HTTPPost : HTTPRequest {
private async void write_chunk (Buffer chunk) {
try {
- // FIXME: Remove redundant cast to string after we bump our vala dep
- // to 0.11.2
- this.stream.write (((string) chunk.data).data, this.cancellable);
+ this.stream.write (chunk.data, this.cancellable);
} catch (Error error) {
this.handle_error (error);
this.handle_continue ();
diff --git a/src/rygel/rygel-seekable-response.vala b/src/rygel/rygel-seekable-response.vala
index 1649ea8..93ed748 100644
--- a/src/rygel/rygel-seekable-response.vala
+++ b/src/rygel/rygel-seekable-response.vala
@@ -119,10 +119,7 @@ internal class Rygel.SeekableResponse : Rygel.HTTPResponse {
});
while (bytes_read > 0) {
- // FIXME: Remove redundant assingment after we bump our vala dep
- // to 0.11.2
- var data = this.buffer[0:bytes_read];
- this.push_data (data);
+ this.push_data (this.buffer[0:bytes_read]);
this.total_length -= bytes_read;
this.run_continue = read_contents.callback;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]