Remove remaining references to model.NewXX (#28678)

And we remove the deprecated functions to force uses
only of the new function.
```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2024-10-10 22:15:22 +05:30
коммит произвёл GitHub
родитель 3db139f746
Коммит a258fd80b2
4 изменённых файлов: 33 добавлений и 39 удалений

Просмотреть файл

@@ -808,7 +808,7 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
}
if s.EnableAPIPostDeletion == nil {
s.EnableAPIPostDeletion = NewBool(false)
s.EnableAPIPostDeletion = NewPointer(false)
}
if s.EnableAPIChannelDeletion == nil {
@@ -1141,7 +1141,7 @@ func (s *ExperimentalSettings) SetDefaults() {
}
if s.YoutubeReferrerPolicy == nil {
s.YoutubeReferrerPolicy = NewBool(false)
s.YoutubeReferrerPolicy = NewPointer(false)
}
}