[folks] e-d-s: ignore the type when comparing images
- From: Raul Gutierrez Segales <raulgs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] e-d-s: ignore the type when comparing images
- Date: Wed, 17 Aug 2011 18:15:58 +0000 (UTC)
commit b9bb49d6b032d930b666f42bb0f73ad8708d15e6
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date: Wed Aug 17 15:48:39 2011 +0100
e-d-s: ignore the type when comparing images
backends/eds/lib/memory-icon.vala | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/backends/eds/lib/memory-icon.vala b/backends/eds/lib/memory-icon.vala
index b381260..360f541 100644
--- a/backends/eds/lib/memory-icon.vala
+++ b/backends/eds/lib/memory-icon.vala
@@ -47,8 +47,7 @@ internal class Edsf.MemoryIcon : Object, Icon, LoadableIcon
/**
* Decide whether two { link MemoryIcon} instances are equal. This compares
- * their image types and image data, and only returns `true` if both are
- * identical.
+ * their image data and returns `true` if they are identical.
*
* @param icon2 the { link MemoryIcon} instance to compare against
* @return `true` if the instances are equal, `false` otherwise
@@ -61,7 +60,6 @@ internal class Edsf.MemoryIcon : Object, Icon, LoadableIcon
assert (icon != null);
return (this._image_data.length == icon._image_data.length &&
- this._image_type == icon._image_type &&
Memory.cmp (this._image_data, icon._image_data,
this._image_data.length) == 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]