Skip to content

Commit a2f99f1

Browse files
committed
Remove unused usings
1 parent f09f07e commit a2f99f1

4 files changed

Lines changed: 6 additions & 14 deletions

File tree

sample/CountryData.Sample.Console/Program.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44

55

66
var countryData = countryHelper.GetCountryData().Take(10);
7-
foreach (var country in countryData)
7+
foreach (var countryItem in countryData)
88
{
9-
Console.WriteLine($"{country.CountryName} ({country.CountryShortCode}) has {country.Regions.Count} regions");
9+
Console.WriteLine($"{countryItem.CountryName} ({countryItem.CountryShortCode}) has {countryItem.Regions.Count} regions");
1010
}
1111

1212

13-
var countryByCode = countryHelper.GetCountry("GHA").ToList();
14-
foreach (var country in countryByCode)
15-
{
16-
Console.WriteLine($"{country.CountryName} ({country.CountryShortCode}) has {country.Regions.Count} regions");
17-
}
13+
var country = countryHelper.GetCountryByCode("GH");
14+
Console.WriteLine($"{country.CountryName} ({country.CountryShortCode}) has {country.Regions.Count} regions");
15+

src/CountryData.Standard/Country.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using CountryData.Standard;
2-
using System;
3-
using System.Collections.Generic;
1+
using System.Collections.Generic;
42

53
namespace CountryData.Standard
64
{

src/CountryData.Standard/CountryHelper.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
using Newtonsoft.Json;
2-
using System;
32
using System.Collections.Generic;
43
using System.IO;
54
using System.Linq;
65
using System.Reflection;
7-
using System.Text;
86

97
namespace CountryData.Standard
108
{

src/CountryData.Standard/Regions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace CountryData.Standard
64
{

0 commit comments

Comments
 (0)