Skip to content

Commit 206de7b

Browse files
Remove unused Localize method and rename ToInternalModel to LoadSdt for consistency with LoadCollection.
1 parent 55a9b94 commit 206de7b

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXRestServices.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,15 @@ internal void Initialize()
8686
context.HttpContext.NewSessionCheck();
8787
ServiceHeaders();
8888
}
89-
89+
//Renamed to LoadSdt
9090
protected T ToInternalModel<T>(GxGenericCollectionItem<T> restSDT) where T : GxUserType, new()
91+
{
92+
return LoadSdt<T>(restSDT);
93+
}
94+
protected T LoadSdt<T>(GxGenericCollectionItem<T> restSDT) where T : GxUserType, new()
9195
{
9296
if (restSDT != null)
9397
{
94-
restSDT.Sdt.Localize(context);
9598
restSDT.Sdt.context = context;
9699
return restSDT.InternalSdt;
97100
}
@@ -111,7 +114,6 @@ internal void Initialize()
111114
restModel.LoadCollection(internalModel);
112115
foreach (GxUserType item in internalModel)
113116
{
114-
item.Localize(context);
115117
item.context = context;
116118
}
117119
}

dotnet/src/dotnetframework/GxClasses/Domain/GxCollections.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,10 +2082,6 @@ public void SetPropertyValue(string propertyName, object propertyValue)
20822082
{
20832083
GetType().GetProperty($"gxTpr_{propertyName}").SetValue(this, propertyValue);
20842084
}
2085-
2086-
public virtual void Localize(IGxContext context)
2087-
{
2088-
}
20892085
}
20902086
public class GXTypeInfo
20912087
{

dotnet/src/dotnetframework/GxClasses/Domain/GxGenericCollections.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,6 @@ public GXBaseCollection(GXBaseCollection<T> value)
122122
Add(item);
123123
}
124124
}
125-
public void Localize(IGxContext context)
126-
{
127-
foreach (T item in this)
128-
{
129-
item.Localize(context);
130-
}
131-
}
132125
protected CollectionBase jsonArr
133126
{
134127
get

0 commit comments

Comments
 (0)