[f-spot/rubenv-gsoc-2009: 21/86] Clean up a warning and some weird code.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/rubenv-gsoc-2009: 21/86] Clean up a warning and some weird code.
- Date: Sun, 23 May 2010 12:33:43 +0000 (UTC)
commit fc71c843bb914ade1f5ba614362db4bcf8849166
Author: Ruben Vermeersch <ruben savanne be>
Date: Mon Jul 27 17:19:07 2009 +0200
Clean up a warning and some weird code.
src/Imaging/PngFile.cs | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/src/Imaging/PngFile.cs b/src/Imaging/PngFile.cs
index cccf6e6..8a78dfc 100644
--- a/src/Imaging/PngFile.cs
+++ b/src/Imaging/PngFile.cs
@@ -143,16 +143,7 @@ namespace FSpot.Png {
}
}
- byte compression;
- public byte Compression {
- get {
- return compression;
- }
- set {
- if (compression != 0)
- throw new System.Exception ("Unknown compression method");
- }
- }
+ public byte Compression { get; protected set; }
public ZtxtChunk (string keyword, string text) : base ()
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]