[objcruntime] Remove `SupportsModernObjectiveC` from the registrar (#13954)

Since 32bits macOS support was dropped this is always `true` so it is not
needed anymore.
This commit is contained in:
Sebastien Pouliot 2022-01-28 04:10:22 -05:00 коммит произвёл GitHub
Родитель 43d74fb895
Коммит 40acce48d9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 18 удалений

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

@ -1900,18 +1900,6 @@ namespace Registrar {
return objcType;
}
protected bool SupportsModernObjectiveC {
get {
#if MTOUCH || MONOTOUCH || BUNDLER
return true;
#elif MMP
return App.Is64Build;
#elif MONOMAC
return IntPtr.Size == 8;
#endif
}
}
// This method is not thread-safe wrt 'types', and must be called with
// a lock held on 'types'.
ObjCType RegisterTypeUnsafe (TType type, ref List<Exception> exceptions)
@ -2104,7 +2092,7 @@ namespace Registrar {
DeclaringType = objcType,
FieldType = "XamarinObject",// "^v", // void*
Name = "__monoObjectGCHandle",
IsPrivate = SupportsModernObjectiveC,
IsPrivate = true,
IsStatic = false,
}, ref exceptions);
}

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

@ -5020,11 +5020,7 @@ namespace Registrar {
}
header.WriteLine ("#include <stdarg.h>");
if (SupportsModernObjectiveC) {
methods.WriteLine ("#include <xamarin/xamarin.h>");
} else {
header.WriteLine ("#include <xamarin/xamarin.h>");
}
methods.WriteLine ("#include <xamarin/xamarin.h>");
header.WriteLine ("#include <objc/objc.h>");
header.WriteLine ("#include <objc/runtime.h>");
header.WriteLine ("#include <objc/message.h>");