Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Fixed unused WriteLine and variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmartel committed Jan 18, 2016
1 parent 82a4224 commit 51e5d3c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tasky/TaskySharedCode/TodoDatabaseADO.cs
Expand Up @@ -25,7 +25,6 @@ public class TodoDatabase
/// </summary>
public TodoDatabase (string dbPath)
{
var output = "";
path = dbPath;
// create the tables
bool exists = File.Exists (dbPath);
Expand All @@ -40,13 +39,12 @@ public TodoDatabase (string dbPath)
foreach (var command in commands) {
using (var c = connection.CreateCommand ()) {
c.CommandText = command;
var i = c.ExecuteNonQuery ();
c.ExecuteNonQuery ();
}
}
} else {
// already exists, do nothing.
}
Console.WriteLine (output);
}

/// <summary>Convert from DataReader to Task object</summary>
Expand Down

0 comments on commit 51e5d3c

Please sign in to comment.