core: Very minor refactoring
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sat, 5 Sep 2009 23:51:31 +0000 (02:51 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sat, 5 Sep 2009 23:51:31 +0000 (02:51 +0300)
src/rygel/rygel-http-server.vala

index 0d06b7e..0a2bc07 100644 (file)
@@ -96,7 +96,7 @@ internal class Rygel.HTTPServer : Rygel.TranscodeManager, Rygel.StateMachine {
         bool present = false;
 
         foreach (var uri in item.uris) {
-            if (uri.has_prefix ("http:")) {
+            if (this.is_http_uri (uri)) {
                 present = true;
 
                 break;
@@ -106,6 +106,10 @@ internal class Rygel.HTTPServer : Rygel.TranscodeManager, Rygel.StateMachine {
         return present;
     }
 
+    private bool is_http_uri (string uri) {
+            return uri.has_prefix ("http:");
+    }
+
     private void on_cancelled (Cancellable cancellable) {
         // Cancel all state machines
         this.cancellable.cancel ();