[f-spot] Clean semweb slightly, but it should just go.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Clean semweb slightly, but it should just go.
- Date: Fri, 14 May 2010 23:41:22 +0000 (UTC)
commit b62a0b3ade0bcbe2e2c08680da757d4df321046b
Author: Ruben Vermeersch <ruben savanne be>
Date: Sat May 15 01:32:07 2010 +0200
Clean semweb slightly, but it should just go.
lib/semweb/LiteralFilters.cs | 6 +++---
lib/semweb/Query.cs | 2 +-
lib/semweb/RdfReader.cs | 2 +-
lib/semweb/SQLStore.cs | 10 +++++-----
4 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/lib/semweb/LiteralFilters.cs b/lib/semweb/LiteralFilters.cs
index fb078cb..284ee21 100644
--- a/lib/semweb/LiteralFilters.cs
+++ b/lib/semweb/LiteralFilters.cs
@@ -125,7 +125,7 @@ namespace SemWeb.Filters {
Decimal i = Decimal.Parse(v);
int c = i.CompareTo(Number);
return CompareFilter(c, Type);
- } catch (Exception e) {
+ } catch (Exception) {
return false;
}
}
@@ -146,7 +146,7 @@ namespace SemWeb.Filters {
DateTime i = DateTime.Parse(v);
int c = i.CompareTo(Value);
return CompareFilter(c, Type);
- } catch (Exception e) {
+ } catch (Exception) {
return false;
}
}
@@ -167,7 +167,7 @@ namespace SemWeb.Filters {
TimeSpan i = TimeSpan.Parse(v);
int c = i.CompareTo(Value);
return CompareFilter(c, Type);
- } catch (Exception e) {
+ } catch (Exception) {
return false;
}
}
diff --git a/lib/semweb/Query.cs b/lib/semweb/Query.cs
index 6fd6fcc..cde7c92 100644
--- a/lib/semweb/Query.cs
+++ b/lib/semweb/Query.cs
@@ -277,7 +277,7 @@ namespace SemWeb.Query {
if (r == null || !(r is Literal)) return -1;
try {
return int.Parse(((Literal)r).Value);
- } catch (Exception e) {
+ } catch (Exception) {
return -1;
}
}
diff --git a/lib/semweb/RdfReader.cs b/lib/semweb/RdfReader.cs
index 2e0bb8c..5ede713 100644
--- a/lib/semweb/RdfReader.cs
+++ b/lib/semweb/RdfReader.cs
@@ -127,7 +127,7 @@ namespace SemWeb {
UriBuilder b = new UriBuilder(baseuri);
b.Fragment = null; // per W3 RDF/XML test suite
return new Uri(b.Uri, uri, true).ToString();
- } catch (UriFormatException e) {
+ } catch (UriFormatException) {
return baseuri + uri;
}
}
diff --git a/lib/semweb/SQLStore.cs b/lib/semweb/SQLStore.cs
index 771ca01..b5a0f62 100644
--- a/lib/semweb/SQLStore.cs
+++ b/lib/semweb/SQLStore.cs
@@ -148,7 +148,7 @@ namespace SemWeb.Stores {
try {
int id = int.Parse(persistentId);
return (BNode)MakeEntity(id, null, null);
- } catch (Exception e) {
+ } catch (Exception) {
return null;
}
}
@@ -182,9 +182,9 @@ namespace SemWeb.Stores {
public override void Clear() {
// Drop the tables, if they exist.
- try { RunCommand("DROP TABLE " + table + "_statements;"); } catch (Exception e) { }
- try { RunCommand("DROP TABLE " + table + "_literals;"); } catch (Exception e) { }
- try { RunCommand("DROP TABLE " + table + "_entities;"); } catch (Exception e) { }
+ try { RunCommand("DROP TABLE " + table + "_statements;"); } catch (Exception) { }
+ try { RunCommand("DROP TABLE " + table + "_literals;"); } catch (Exception) { }
+ try { RunCommand("DROP TABLE " + table + "_entities;"); } catch (Exception) { }
firstUse = true;
Init();
@@ -1219,7 +1219,7 @@ namespace SemWeb.Stores {
if (ret is int) return (int)ret;
try {
return int.Parse(ret.ToString());
- } catch (FormatException e) {
+ } catch (FormatException) {
return def;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]