[f-spot] Stop implementing IBrowsableItem in PhotoVersion.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Stop implementing IBrowsableItem in PhotoVersion.
- Date: Tue, 18 May 2010 19:05:47 +0000 (UTC)
commit ae3cae93356efdcad4e37b62565318a0c0a12daf
Author: Ruben Vermeersch <ruben savanne be>
Date: Tue May 18 21:03:51 2010 +0200
Stop implementing IBrowsableItem in PhotoVersion.
It is never used as such and it really doesn't make much sense. Cleaning
this up will make a refactor of this stuff so much easier.
src/Core/Photo.cs | 2 +-
src/Core/PhotoVersion.cs | 22 +---------------------
2 files changed, 2 insertions(+), 22 deletions(-)
---
diff --git a/src/Core/Photo.cs b/src/Core/Photo.cs
index 461a7ae..265cd7a 100644
--- a/src/Core/Photo.cs
+++ b/src/Core/Photo.cs
@@ -152,7 +152,7 @@ namespace FSpot
}
}
- public IBrowsableItem GetVersion (uint version_id)
+ public PhotoVersion GetVersion (uint version_id)
{
if (versions == null)
return null;
diff --git a/src/Core/PhotoVersion.cs b/src/Core/PhotoVersion.cs
index 831be49..3f81a88 100644
--- a/src/Core/PhotoVersion.cs
+++ b/src/Core/PhotoVersion.cs
@@ -12,7 +12,7 @@
namespace FSpot
{
- public class PhotoVersion : FSpot.IBrowsableItem
+ public class PhotoVersion
{
Photo photo;
uint version_id;
@@ -21,22 +21,6 @@ namespace FSpot
string name;
bool is_protected;
- public System.DateTime Time {
- get { return photo.Time; }
- }
-
- public Tag [] Tags {
- get { return photo.Tags; }
- }
-
- public System.Uri DefaultVersionUri {
- get { return uri; }
- }
-
- public string Description {
- get { return photo.Description; }
- }
-
public string Name {
get { return name; }
set { name = value; }
@@ -68,10 +52,6 @@ namespace FSpot
get { return is_protected; }
}
- public uint Rating {
- get { return photo.Rating; }
- }
-
public PhotoVersion (Photo photo, uint version_id, System.Uri uri, string md5_sum, string name, bool is_protected)
{
this.photo = photo;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]