Removed a couple of warnings

This commit is contained in:
Rick Falkvinge
2018-01-05 20:02:24 +01:00
parent 7c80600abc
commit 8d30ab95d3
3 changed files with 4 additions and 7 deletions
+2 -2
View File
@@ -954,8 +954,8 @@ namespace Swarmops.Logic.Financial
// Add outputs and prepare notifications
Int64 satoshisUsed = 0;
Dictionary<int, List<string>> notificationSpecLookup = new Dictionary<int, List<string>>();
Dictionary<int, List<Int64>> notificationAmountLookup = new Dictionary<int, List<Int64>>();
//Dictionary<int, List<string>> notificationSpecLookup = new Dictionary<int, List<string>>();
//Dictionary<int, List<Int64>> notificationAmountLookup = new Dictionary<int, List<Int64>>();
Payout masterPayoutPrototype = Payout.Empty;
HotBitcoinAddress changeAddress = HotBitcoinAddress.OrganizationWalletZero(organization, BitcoinChain.Core);
+1 -4
View File
@@ -64,8 +64,6 @@ namespace Swarmops.Logic.Financial
public static VatReport Create(Organization organization, int year, int startMonth, int monthCount)
{
VatReport newReport = CreateDbRecord(organization, year, startMonth, monthCount);
VatReportItems testItems = newReport.Items;
DateTime startDate = new DateTime(year, startMonth, 1).AddYears(-1); // start a year before report starts
DateTime endDate = new DateTime(year, startMonth, 1).AddMonths(monthCount);
FinancialAccount vatInbound = organization.FinancialAccounts.AssetsVatInboundUnreported;
@@ -203,8 +201,7 @@ namespace Swarmops.Logic.Financial
throw new InvalidOperationException("Cannot add items once the report is released");
}
VatReportItem newItem = VatReportItem.Create(this, transaction, turnoverCents, vatInboundCents,
vatOutboundCents);
VatReportItem.Create(this, transaction, turnoverCents, vatInboundCents, vatOutboundCents);
}
public void Release()
+1 -1
View File
@@ -36,7 +36,7 @@ namespace Swarmops.Logic.Support
// Instantiate the class
string[] components = BackendServiceClassName.Split(',');
string assemblyName = components[0];
// string assemblyName = components[0]; // TODO: For plugin use later
string className = components[1];
Assembly assembly = Assembly.GetExecutingAssembly(); // TODO: Make this actually select the named assembly