aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-04-28 16:28:58 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-04-28 16:28:58 +0200
commit805f3ae52270c58c1e4617f41b68ca813582b8e9 (patch)
tree50fe07c8636af7ae372f4782b1605dcbf5943b6e
parenteb374b0569a9175b3bf9a184f4b1be853ca345a6 (diff)
downloadcgeo-805f3ae52270c58c1e4617f41b68ca813582b8e9.zip
cgeo-805f3ae52270c58c1e4617f41b68ca813582b8e9.tar.gz
cgeo-805f3ae52270c58c1e4617f41b68ca813582b8e9.tar.bz2
Remove obsolete comment
We do not like to have variables initialized with a dummy value. It prevents the flow path analysis from noticing a problem, as it would not see that, in some cases, we have forgotten to initialize the variable. Taping over potential mistakes, especially in a preventive way, is definitely not a good idea.
-rw-r--r--main/src/cgeo/geocaching/cgData.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgData.java b/main/src/cgeo/geocaching/cgData.java
index fd90a02..11891dd 100644
--- a/main/src/cgeo/geocaching/cgData.java
+++ b/main/src/cgeo/geocaching/cgData.java
@@ -2114,7 +2114,7 @@ public class cgData {
int count = 0;
try {
- String sql; // this default is not used, but we like to have variables initialized
+ String sql;
if (!detailedOnly) {
if (cacheType == CacheType.ALL) {
sql = "select count(_id) from " + dbTableCaches + listSql;