[rygel] core: No need to pass query to HTTPRequest



commit ed24d4a6162a6c458cf49d973fb52bb2a674e670
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Mar 19 15:18:19 2010 +0200

    core: No need to pass query to HTTPRequest
    
    We don't use the HTTP query anymore so is no need to pass it around.

 src/rygel/rygel-http-get.vala     |    9 ++++-----
 src/rygel/rygel-http-post.vala    |    2 +-
 src/rygel/rygel-http-request.vala |    9 +++------
 src/rygel/rygel-http-server.vala  |    2 +-
 4 files changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/src/rygel/rygel-http-get.vala b/src/rygel/rygel-http-get.vala
index a3596e5..ecd0a07 100644
--- a/src/rygel/rygel-http-get.vala
+++ b/src/rygel/rygel-http-get.vala
@@ -36,11 +36,10 @@ internal class Rygel.HTTPGet : HTTPRequest {
 
     public HTTPGetHandler handler;
 
-    public HTTPGet (HTTPServer                http_server,
-                    Soup.Server               server,
-                    Soup.Message              msg,
-                    HashTable<string,string>? query) {
-        base (http_server, server, msg, query);
+    public HTTPGet (HTTPServer   http_server,
+                    Soup.Server  server,
+                    Soup.Message msg) {
+        base (http_server, server, msg);
 
         this.thumbnail_index = -1;
     }
diff --git a/src/rygel/rygel-http-post.vala b/src/rygel/rygel-http-post.vala
index 497e51d..26f3dab 100644
--- a/src/rygel/rygel-http-post.vala
+++ b/src/rygel/rygel-http-post.vala
@@ -37,7 +37,7 @@ internal class Rygel.HTTPPost : HTTPRequest {
     public HTTPPost (HTTPServer   http_server,
                      Soup.Server  server,
                      Soup.Message msg) {
-        base (http_server, server, msg, null);
+        base (http_server, server, msg);
     }
 
     protected override async void handle () {
diff --git a/src/rygel/rygel-http-request.vala b/src/rygel/rygel-http-request.vala
index 85df840..c510ecc 100644
--- a/src/rygel/rygel-http-request.vala
+++ b/src/rygel/rygel-http-request.vala
@@ -37,23 +37,20 @@ internal abstract class Rygel.HTTPRequest : GLib.Object, Rygel.StateMachine {
     private MediaContainer root_container;
     public Soup.Server server;
     public Soup.Message msg;
-    private HashTable<string,string>? query;
 
     public Cancellable cancellable { get; set; }
 
     protected HTTPItemURI uri;
     public MediaItem item;
 
-    public HTTPRequest (HTTPServer                http_server,
-                        Soup.Server               server,
-                        Soup.Message              msg,
-                        HashTable<string,string>? query) {
+    public HTTPRequest (HTTPServer   http_server,
+                        Soup.Server  server,
+                        Soup.Message msg) {
         this.http_server = http_server;
         this.cancellable = new Cancellable ();
         this.root_container = http_server.root_container;
         this.server = server;
         this.msg = msg;
-        this.query = query;
     }
 
     public async void run () {
diff --git a/src/rygel/rygel-http-server.vala b/src/rygel/rygel-http-server.vala
index 92bebaa..9b46441 100644
--- a/src/rygel/rygel-http-server.vala
+++ b/src/rygel/rygel-http-server.vala
@@ -170,7 +170,7 @@ internal class Rygel.HTTPServer : Rygel.TranscodeManager, Rygel.StateMachine {
                 debug ("%s : %s", name, value);
         });
 
-        this.queue_request (new HTTPGet (this, server, msg, query));
+        this.queue_request (new HTTPGet (this, server, msg));
     }
 
     private void on_request_aborted (Soup.Server        server,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]