[hyena] Hyena.Data.Sqlite: Remove unused code, fixing build
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Hyena.Data.Sqlite: Remove unused code, fixing build
- Date: Wed, 5 Jan 2011 18:24:59 +0000 (UTC)
commit b0a0a9c96f52f141f84e0e6bdd8100b26535b900
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date: Wed Jan 5 12:24:35 2011 -0600
Hyena.Data.Sqlite: Remove unused code, fixing build
Signed-off-by: Gabriel Burt <gabriel burt gmail com>
Hyena.Data.Sqlite/Hyena.Data.Sqlite/Sqlite.cs | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/Hyena.Data.Sqlite/Hyena.Data.Sqlite/Sqlite.cs b/Hyena.Data.Sqlite/Hyena.Data.Sqlite/Sqlite.cs
index 9bbb0d2..1c38139 100644
--- a/Hyena.Data.Sqlite/Hyena.Data.Sqlite/Sqlite.cs
+++ b/Hyena.Data.Sqlite/Hyena.Data.Sqlite/Sqlite.cs
@@ -263,8 +263,6 @@ namespace Hyena.Data.Sqlite
}
}
- private string ShortSql { get { return CommandText.Substring (0, Math.Min (CommandText.Length, 20)); } }
-
public void Dispose ()
{
if (disposed)
@@ -508,24 +506,6 @@ namespace Hyena.Data.Sqlite
return SqliteUtils.FromDbFormat (type, o);
}
- static Type long_type = typeof(long);
- static Type double_type = typeof(double);
- static Type [] long_types = { typeof(int), typeof(uint), typeof(ulong) };
- static Type [] double_types = { typeof(float) };
- static Type [] self_types = { typeof(string), typeof(byte[]), long_type, double_type};
-
- static Type DbTypeFor (Type type)
- {
- if (long_types.Contains (type))
- return typeof(int);
- else if (double_types.Contains (type))
- return double_type;
- else if (self_types.Contains (type))
- return type;
- else
- return null;
- }
-
public T Get<T> (string columnName)
{
return Get<T> (GetColumnIndex (columnName));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]