From 110d1e6fbef39959f7c7b99eca6bbb0bc41dc218 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 28 May 2013 13:32:50 -0400 Subject: removed swallowed exceptions --- .../Sqlite/SQLiteRepository.cs | 32 ---------------------- 1 file changed, 32 deletions(-) (limited to 'MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs') diff --git a/MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs b/MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs index ee2fcc10c..7547212c5 100644 --- a/MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs +++ b/MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs @@ -151,38 +151,6 @@ namespace MediaBrowser.Server.Implementations.Sqlite } } - /// - /// Executes the command. - /// - /// The CMD. - /// Task. - /// cmd - public async Task ExecuteCommand(DbCommand cmd) - { - if (cmd == null) - { - throw new ArgumentNullException("cmd"); - } - - using (var tran = Connection.BeginTransaction()) - { - try - { - cmd.Connection = Connection; - cmd.Transaction = tran; - - await cmd.ExecuteNonQueryAsync().ConfigureAwait(false); - - tran.Commit(); - } - catch (Exception e) - { - Logger.ErrorException("Failed to commit transaction.", e); - tran.Rollback(); - } - } - } - /// /// Gets a stream from a DataReader at a given ordinal /// -- cgit v1.2.3