Skip to content

Commit f5141c2

Browse files
authored
remove redundant constructors (#4573)
1 parent f754f66 commit f5141c2

21 files changed

+0
-76
lines changed

Source/Csla.Blazor.Test/ViewModelSaveAsyncErrorTests.cs

-4
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,6 @@ public async Task SavingWithCancelledCancellationToken_ErrorEventIsInvoked()
123123

124124
private class FakeBusy : Core.ITrackStatus
125125
{
126-
public FakeBusy()
127-
{
128-
}
129-
130126
public bool IsValid { get; set; }
131127

132128
public bool IsSelfValid { get; set; }

Source/Csla.test/Asserter.cs

-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ namespace UnitDriven
1212
{
1313
public class Asserter
1414
{
15-
public Asserter()
16-
{
17-
}
18-
1915
public void IsNull<T>(T value)
2016
{
2117
Assert.IsNull(value);

Source/Csla.test/Authorization/AuthTests.cs

-4
Original file line numberDiff line numberDiff line change
@@ -715,10 +715,6 @@ protected override Task ExecuteAsync(IAuthorizationContext context, Cancellation
715715
[Serializable]
716716
public class RootList : BusinessListBase<RootList, ChildItem>
717717
{
718-
public RootList()
719-
{
720-
}
721-
722718
[Create]
723719
private void Create([Inject] IChildDataPortal<ChildItem> childDataPortal)
724720
{

Source/Csla.test/Basic/CollectionTests.cs

-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ public void RootListGetRuleDescriptions()
5151
[Serializable]
5252
public class TestCollection : BusinessBindingListBase<TestCollection, TestItem>
5353
{
54-
public TestCollection()
55-
{
56-
}
57-
5854
[Create]
5955
private void Create()
6056
{

Source/Csla.test/Basic/CommandObject.cs

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@ protected void DataPortal_Execute()
3535
AProperty = "Executed";
3636
}
3737
}
38-
39-
public CommandObject()
40-
{
41-
}
4238
}
4339
}

Source/Csla.test/DataPortal/ChildEntityList.cs

-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ namespace Csla.Test.DataBinding
1111
[Serializable]
1212
public class ChildEntityList : BusinessBindingListBase<ChildEntityList, ChildEntity>
1313
{
14-
public ChildEntityList()
15-
{
16-
}
17-
1814
#region "Criteria"
1915

2016
[Serializable]

Source/Csla.test/EditableRootList/ERitem.cs

-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ public string Data
1818
set { SetProperty(DataProperty, value); }
1919
}
2020

21-
public ERitem()
22-
{ }
23-
2421
[Create]
2522
private void Create()
2623
{

Source/Csla.test/Fakes/Server/BusyStatus/ItemWithAsynchRule.cs

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ namespace Csla.Testing.Business.BusyStatus
1313
[Serializable]
1414
public class ItemWithAsynchRule : BusinessBase<ItemWithAsynchRule>
1515
{
16-
public ItemWithAsynchRule() { }
17-
1816
private static PropertyInfo<string> IdProperty = RegisterProperty<string>(c => c.Id);
1917

2018
public string Id

Source/Csla.test/Fakes/Server/DataPortal/AsyncPortalWithCulture.cs

-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ public string CurrentCulture
3939
public static PropertyInfo<string> CurrentCultureProperty =
4040
RegisterProperty<string>(new PropertyInfo<string>("CurrentCulture"));
4141

42-
public AsyncPortalWithCulture() { }
43-
4442
[RunLocal]
4543
[Create]
4644
private void Create()

Source/Csla.test/Fakes/Server/DataPortal/PrimitiveCriteriaSingle.cs

-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ protected override object GetIdValue()
3737

3838
#endregion
3939

40-
public PrimitiveCriteriaSingle()
41-
{ }
42-
4340
#region Data Access
4441

4542
#region DataPortal_Create

Source/Csla.test/Fakes/Server/DataPortal/Single.cs

-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ public string MethodCalled
3131
set { SetProperty(MethodCalledProperty, value); }
3232
}
3333

34-
public Single()
35-
{ }
36-
3734
[Create]
3835
protected void DataPortal_Create()
3936
{

Source/Csla.test/FieldManager/Async/ChildList.cs

-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ public static Task<ChildList> GetListAsync(IChildDataPortal<ChildList> childData
1616
return childDataPortal.FetchChildAsync();
1717
}
1818

19-
public ChildList()
20-
{
21-
}
22-
2319
public object MyParent
2420
{
2521
get { return Parent; }

Source/Csla.test/LazyLoad/AChild.cs

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ public Guid Id
2323
get { return base.EditLevel; }
2424
}
2525

26-
public AChild()
27-
{
28-
}
29-
3026
[Create]
3127
[CreateChild]
3228
private void Create()

Source/Csla.test/Linq/LinqObservableCollectionTest.cs

-4
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,6 @@ public void ClearView()
448448
[Serializable]
449449
public class TestList : BusinessListBase<TestList, TestItem>
450450
{
451-
public TestList()
452-
{
453-
}
454-
455451
public static TestList NewTestList(IDataPortal<TestList> dataPortal)
456452
{
457453
return dataPortal.Create();

Source/Csla.test/PropertyGetSet/ChildList.cs

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ namespace Csla.Test.PropertyGetSet
1111
[Serializable]
1212
public class ChildList : BusinessListBase<ChildList, EditableGetSet>
1313
{
14-
public ChildList()
15-
{ }
16-
1714
public static ChildList NewObject(IDataPortal<ChildList> dataPortal)
1815
{
1916
return dataPortal.Create();

Source/Csla.test/PropertyGetSet/EditableGetSetBase.cs

-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ public string Base
3131
public class EditableGetSetNFIBase<T> : EditableGetSetTopNFIBase<T>
3232
where T : EditableGetSetNFIBase<T>
3333
{
34-
public EditableGetSetNFIBase()
35-
{
36-
}
37-
3834
public static PropertyInfo<string> BaseProperty = RegisterProperty<string>(new PropertyInfo<string>("Base", "Base"));
3935
public string Base
4036
{

Source/Csla.test/PropertyGetSet/EditableGetSetTopBase.cs

-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ public string TopBase
3131
public class EditableGetSetTopNFIBase<T> : BusinessBase<T>
3232
where T : EditableGetSetTopNFIBase<T>
3333
{
34-
public EditableGetSetTopNFIBase()
35-
{
36-
}
37-
3834
public static PropertyInfo<string> TopBaseProperty = RegisterProperty<string>(new PropertyInfo<string>("TopBase", "TopBase"));
3935
public string TopBase
4036
{

Source/Csla.test/Serialization/BinaryReaderWriterTestClass.cs

-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ public enum RandomEnum
1010
[Serializable]
1111
public class BinaryReaderWriterTestClassList : BusinessListBase<BinaryReaderWriterTestClassList, BinaryReaderWriterTestClass>
1212
{
13-
public BinaryReaderWriterTestClassList()
14-
{
15-
16-
}
17-
1813
public void Setup()
1914
{
2015
}

Source/Csla.test/ValidationRules/AsyncRuleRoot.cs

-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ public static AsyncRuleRoot NewRoot(IDataPortal<AsyncRuleRoot> dataPortal)
3636
return dataPortal.Create();
3737
}
3838

39-
public AsyncRuleRoot()
40-
{
41-
}
42-
4339
protected override void AddBusinessRules()
4440
{
4541
BusinessRules.AddRule(new Rules.CommonRules.Required(CustomerNumberProperty));

Source/Csla.test/ValidationRules/ValidationTests.cs

-3
Original file line numberDiff line numberDiff line change
@@ -817,9 +817,6 @@ public string Value1
817817
set { SetProperty(Value1Property, value); }
818818
}
819819

820-
public DirtyAfterOutValueChangesProperty()
821-
{ }
822-
823820
protected override void AddBusinessRules()
824821
{
825822
base.AddBusinessRules();

Source/csla.netcore.test/Basic/CommandObject.cs

-4
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,5 @@ protected void DataPortal_Execute()
3030
AProperty = "Executed";
3131
}
3232
}
33-
34-
public CommandObject()
35-
{
36-
}
3733
}
3834
}

0 commit comments

Comments
 (0)