[rygel] core: Remove redundant assignment/variable



commit cc0dda5a2733a94a06da78100737a78f352d854c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Aug 25 17:40:27 2010 +0300

    core: Remove redundant assignment/variable

 src/rygel/rygel-relational-expression.vala |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/rygel/rygel-relational-expression.vala b/src/rygel/rygel-relational-expression.vala
index 24d3348..81232ff 100644
--- a/src/rygel/rygel-relational-expression.vala
+++ b/src/rygel/rygel-relational-expression.vala
@@ -44,15 +44,13 @@ public class Rygel.RelationalExpression :
                 return false;
             }
 
-            var container = media_object as MediaContainer;
-            return this.compare_create_class (container);
+            return this.compare_create_class (media_object as MediaContainer);
         case "dc:creator":
             if (!(media_object is PhotoItem)) {
                 return false;
             }
 
-            var photo = media_object as PhotoItem;
-            return this.compare_string (photo.creator);
+            return this.compare_string ((media_object as PhotoItem).creator);
         default:
             return false;
         }



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