Skip to content

Commit f5fac03

Browse files
cleaning up warnings
1 parent 0a54cc9 commit f5fac03

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

DataSource.DataProviders.SQLite/SQLiteDataProvider/SQLiteDataSourceFilterExpressionVisitor.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ public override void VisitFunctionExpression(IFunctionFilterExpression expressio
283283
case FilterExpressionFunctionType.Ceiling:
284284
throw new NotImplementedException();
285285
//functionName = "ceiling";
286-
break;
287286
case FilterExpressionFunctionType.Concat:
288287
between = " || ";
289288
break;
@@ -294,18 +293,15 @@ public override void VisitFunctionExpression(IFunctionFilterExpression expressio
294293
break;
295294
case FilterExpressionFunctionType.Day:
296295
throw new NotImplementedException();
297-
break;
298296
case FilterExpressionFunctionType.EndsWith:
299297
unquote = true;
300298
between = " LIKE '%";
301299
postfix = "'";
302300
break;
303301
case FilterExpressionFunctionType.Floor:
304302
throw new NotImplementedException();
305-
break;
306303
case FilterExpressionFunctionType.Hour:
307304
throw new NotImplementedException();
308-
break;
309305
case FilterExpressionFunctionType.IndexOf:
310306
functionName = "intstr";
311307
break;
@@ -314,10 +310,8 @@ public override void VisitFunctionExpression(IFunctionFilterExpression expressio
314310
break;
315311
case FilterExpressionFunctionType.Minute:
316312
throw new NotImplementedException();
317-
break;
318313
case FilterExpressionFunctionType.Month:
319314
throw new NotImplementedException();
320-
break;
321315
case FilterExpressionFunctionType.Replace:
322316
functionName = "replace";
323317
break;
@@ -326,7 +320,6 @@ public override void VisitFunctionExpression(IFunctionFilterExpression expressio
326320
break;
327321
case FilterExpressionFunctionType.Second:
328322
throw new NotImplementedException();
329-
break;
330323
case FilterExpressionFunctionType.StartsWith:
331324
unquote = true;
332325
between = " LIKE '";
@@ -346,7 +339,6 @@ public override void VisitFunctionExpression(IFunctionFilterExpression expressio
346339
break;
347340
case FilterExpressionFunctionType.Year:
348341
throw new NotImplementedException();
349-
break;
350342
}
351343

352344
if (functionName != null)

DataSource.DataProviders.SQLite/SQLiteDataProvider/SQLiteVirtualDataSourceDataProviderWorker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ protected override void ProcessCompletedTask(AsyncDataSourcePageTaskHolder compl
497497
return;
498498
}
499499
}
500-
catch (TaskCanceledException e)
500+
catch (TaskCanceledException)
501501
{
502502
RetryIndex(pageIndex, currentDelay);
503503
//TODO: other exceptions? Is there a way to skip this state for canceled stuff?

ODataDataProvider/ODataVirtualDataSourceDataProviderWorker.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ protected override void Initialize()
9494

9595
lock (SyncLock)
9696
{
97-
_client = new ODataClient(new ODataClientSettings(_baseUri)
97+
_client = new ODataClient(new ODataClientSettings()
9898
{
99+
BaseUri = new Uri(_baseUri),
99100
IgnoreUnmappedProperties = true
100101
});
101102
}
@@ -206,7 +207,7 @@ protected override void ProcessCompletedTask(AsyncDataSourcePageTaskHolder compl
206207
return;
207208
}
208209
}
209-
catch (TaskCanceledException e)
210+
catch (TaskCanceledException)
210211
{
211212
RetryIndex(pageIndex, currentDelay);
212213
//TODO: other exceptions? Is there a way to skip this state for canceled stuff?
@@ -436,7 +437,7 @@ private ISectionInformation[] ResolveGroupInformation()
436437

437438
return groupInformation.ToArray();
438439
}
439-
catch (Exception e)
440+
catch (Exception)
440441
{
441442
return null;
442443
}
@@ -518,7 +519,7 @@ private ISummaryResult[] ResolveSummaryInformation()
518519

519520
return CreateSummaryResults(summaryData);
520521
}
521-
catch (Exception e)
522+
catch (Exception)
522523
{
523524
return null;
524525
}
@@ -666,7 +667,6 @@ private DataSourceSchemaPropertyType ResolvePropertyType(string propertyName)
666667
}
667668

668669
private string _filterString = null;
669-
private string _selectedString = null;
670670
public const int SchemaRequestIndex = -1;
671671
private SortDescriptionCollection _groupDescriptions;
672672
private bool _isAggregationSupportedByServer = false;

0 commit comments

Comments
 (0)