[rygel] core: Remove redundant arg from a method
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Remove redundant arg from a method
- Date: Mon, 8 Nov 2010 21:01:27 +0000 (UTC)
commit 2b856b6958f57012b765561131eab5144b9e4236
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Nov 8 22:44:24 2010 +0200
core: Remove redundant arg from a method
Remove now redundant 'length' argument of SeekableResponse.push_data().
src/rygel/rygel-http-response.vala | 2 +-
src/rygel/rygel-live-response.vala | 2 +-
src/rygel/rygel-seekable-response.vala | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel/rygel-http-response.vala b/src/rygel/rygel-http-response.vala
index 543e6dc..0a52594 100644
--- a/src/rygel/rygel-http-response.vala
+++ b/src/rygel/rygel-http-response.vala
@@ -58,7 +58,7 @@ internal abstract class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
this.end (true, Soup.KnownStatusCode.CANCELLED);
}
- public void push_data (uint8[] data, size_t length) {
+ public void push_data (uint8[] data) {
this.msg.response_body.append (Soup.MemoryUse.COPY, data);
this.server.unpause_message (this.msg);
diff --git a/src/rygel/rygel-live-response.vala b/src/rygel/rygel-live-response.vala
index 3f90e9e..0a329a4 100644
--- a/src/rygel/rygel-live-response.vala
+++ b/src/rygel/rygel-live-response.vala
@@ -162,7 +162,7 @@ internal class Rygel.LiveResponse : Rygel.HTTPResponse {
return false;
}
- this.push_data (buffer.data, (size_t) buffer.size);
+ this.push_data (buffer.data);
this.buffered++;
if (this.buffered > MAX_BUFFERED_CHUNKS) {
diff --git a/src/rygel/rygel-seekable-response.vala b/src/rygel/rygel-seekable-response.vala
index f5d8c60..1649ea8 100644
--- a/src/rygel/rygel-seekable-response.vala
+++ b/src/rygel/rygel-seekable-response.vala
@@ -122,7 +122,7 @@ internal class Rygel.SeekableResponse : Rygel.HTTPResponse {
// 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, bytes_read);
+ this.push_data (data);
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]