[f-spot/rubenv-gsoc-2009: 28/86] Remove some unused code.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/rubenv-gsoc-2009: 28/86] Remove some unused code.
- Date: Sun, 23 May 2010 12:34:18 +0000 (UTC)
commit ab3c9ba69aee2e519047771e4ff72befe7da471a
Author: Ruben Vermeersch <ruben savanne be>
Date: Tue Jul 28 19:25:26 2009 +0200
Remove some unused code.
src/Imaging/IOChannel.cs | 3 ---
src/Imaging/InternalProcess.cs | 3 ---
src/Imaging/PngFile.cs | 14 --------------
3 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/src/Imaging/IOChannel.cs b/src/Imaging/IOChannel.cs
index cf5a0f3..f695a44 100644
--- a/src/Imaging/IOChannel.cs
+++ b/src/Imaging/IOChannel.cs
@@ -232,9 +232,6 @@ namespace FSpot {
End
}
- [DllImport("libglib-2.0-0.dll")]
- static extern IOStatus g_io_channel_seek_position (HandleRef handle, long offset, SeekType type, out IntPtr error);
-
public override long Seek (long position, SeekOrigin origin)
{
#if false
diff --git a/src/Imaging/InternalProcess.cs b/src/Imaging/InternalProcess.cs
index 5ff29b9..b714be4 100644
--- a/src/Imaging/InternalProcess.cs
+++ b/src/Imaging/InternalProcess.cs
@@ -18,7 +18,6 @@ namespace FSpot {
internal class InternalProcess {
int stdin;
int stdout;
- int stderr;
IOChannel input;
IOChannel output;
IOChannel errorput;
@@ -52,7 +51,6 @@ namespace FSpot {
ref int stdin,
ref int stdout,
IntPtr err,
- //ref int stderr,
out IntPtr error);
public InternalProcess (string path, string [] args)
@@ -74,7 +72,6 @@ namespace FSpot {
input = new IOChannel (stdin);
output = new IOChannel (stdout);
- //errorput = new IOChannel (stderr);
}
}
}
diff --git a/src/Imaging/PngFile.cs b/src/Imaging/PngFile.cs
index 8a78dfc..3b4d359 100644
--- a/src/Imaging/PngFile.cs
+++ b/src/Imaging/PngFile.cs
@@ -869,20 +869,6 @@ namespace FSpot.Png {
}
}
- private static byte PaethPredict (byte a, byte b, byte c)
- {
- int p = a + b - c;
- int pa = System.Math.Abs (p - a);
- int pb = System.Math.Abs (p - b);
- int pc = System.Math.Abs (p - c);
- if (pa <= pb && pa <= pc)
- return a;
- else if (pb <= pc)
- return b;
- else
- return c;
- }
-
public void ReconstructRow (int row, int channels)
{
int offset = row * width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]