Fixed more warnings

This commit is contained in:
Rick Falkvinge
2018-01-05 23:28:49 +01:00
parent e613283535
commit 78e416960f
4 changed files with 1 additions and 48 deletions
-2
View File
@@ -178,7 +178,6 @@ namespace Swarmops.Logic.Cache
List<BasicOrganization> result = new List<BasicOrganization>();
//Prime the cache
BasicOrganization start = GetOrganization (startOrganizationId);
List<BasicOrganization> thisList = organizations[startOrganizationId];
@@ -219,7 +218,6 @@ namespace Swarmops.Logic.Cache
List<BasicOrganization> result = new List<BasicOrganization>();
lock (loadCacheLock)
{
BasicOrganization parent = GetOrganization (parentOrgId);
//TODO: It is possible to miss a child here if that child was added after the last cache load.
Dictionary<int, List<BasicOrganization>> hashedOrganizations = GetHashedOrganizations();
@@ -82,16 +82,13 @@ namespace Swarmops.Logic.Communications
case "SwedishKannel":
{
String username = Credential.Login;
String password = Credential.Password;
Encoding enc = Credential.Encoding;
String url = "https://nurse.sanitarium.se/kannel/status";
String result;
HttpWebResponse responseOut = null;
try
{
result = HTTPSender.Send (url, enc, 1500, out responseOut);
HTTPSender.Send (url, enc, 1500, out responseOut);
if (((int) responseOut.StatusCode).ToString().StartsWith ("2"))
return true;
return false;
@@ -1,41 +0,0 @@
using System.Collections.Generic;
using System.ComponentModel;
using Swarmops.Database;
using Swarmops.Logic.Structure;
namespace Swarmops.Logic.DataObjects
{
#if !__MonoCS__
[DataObject (true)]
#endif
public class GeographyWithPeopleDataObject
{
#if !__MonoCS__
[DataObjectMethod (DataObjectMethodType.Select)]
#endif
public static GeographyWithPeople[] SelectSortedStatic (int orgId)
{
Organizations orgs = Organization.FromIdentity (orgId).ThisAndBelow();
List<GeographyWithPeople> resList = new List<GeographyWithPeople>();
Geographies tree = Geography.Root.ThisAndBelow();
foreach (Geography geo in tree)
{
GeographyWithPeople row = new GeographyWithPeople();
row.GeographyID = geo.Identity;
row.Name = geo.Name;
row.ActivistCount = 0;
row.MemberCount = 0;
row.LeadContent = "";
row.SecondsContent = "";
row.OrgId = orgId;
Geographies gTree = geo.ThisAndBelow();
int[] members = SwarmDb.GetDatabaseForReading()
.GetParticipantsForOrganizationsAndGeographies (orgs.Identities, gTree.Identities);
}
return resList.ToArray();
}
}
}
-1
View File
@@ -277,7 +277,6 @@
<Compile Include="Communications\PaperLetters.cs" />
<Compile Include="Communications\PhoneMessageReceiver.cs" />
<Compile Include="Communications\TypedMailTemplate.cs" />
<Compile Include="DataObjects\GeographyWithPeopleDataObject.cs" />
<Compile Include="DataObjects\OrganizationDataObject.cs" />
<Compile Include="Governance\Ballot.cs" />
<Compile Include="Governance\Ballots.cs" />