[src] Remove dead classic/unified code. (#7999)

This commit is contained in:
Rolf Bjarne Kvinge 2020-02-27 22:15:00 +01:00 коммит произвёл GitHub
Родитель aead4cd408
Коммит 2f52c3fff8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 17 удалений

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

@ -37,13 +37,6 @@ namespace ObjCRuntime
{
class Stret
{
#if BGENERATOR
#elif __UNIFIED__
const bool isUnified = true;
#else
const bool isUnified = false;
#endif
static bool IsHomogeneousAggregateSmallEnough_Armv7k (Type t, int members)
{
// https://github.com/llvm-mirror/clang/blob/82f6d5c9ae84c04d6e7b402f72c33638d1fb6bc8/lib/CodeGen/TargetInfo.cpp#L5516-L5519

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

@ -63,16 +63,8 @@ public class AttributeManager
// Types (attributes) in the generator are mocked types from
// either the binding assembly or the platform assembly.
rv = TypeManager.BindingAssembly.GetType (type.FullName);
if (rv == null) {
string fullname;
// HACK ??
if (type.Namespace?.StartsWith ("XamCore.", System.StringComparison.Ordinal) == true) {
fullname = type.FullName.Substring (8);
} else {
fullname = type.FullName;
}
rv = TypeManager.PlatformAssembly.GetType (fullname);
}
if (rv == null)
rv = TypeManager.PlatformAssembly.GetType (type.FullName);
} else {
throw ErrorHelper.CreateError (1054, type.AssemblyQualifiedName);
}