1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Removed unnecessary [Friend] attributes

This commit is contained in:
Brian Fiete 2020-08-16 08:34:31 -07:00
parent 99419097c5
commit b89e036a6f
4 changed files with 5 additions and 5 deletions

View file

@ -166,7 +166,7 @@ namespace System
static Object Object_DynamicCastToTypeId(Object obj, int32 typeId)
{
#if BF_DYNAMIC_CAST_CHECK
return obj.[Friend]DynamicCastToTypeId(typeId);
return obj.DynamicCastToTypeId(typeId);
#else
return null;
#endif

View file

@ -2897,7 +2897,7 @@ namespace System
char8 firstC = subStr[0];
for (int ofs = startIdx; ofs <= mLength - subStr.mLength; ofs++)
{
if ((mPtr[ofs] == firstC) && (String.[Friend]Compare(mPtr + ofs + 1, subStr.mLength - 1, subStr.mPtr + 1, subStr.mLength - 1, ignoreCase) == 0))
if ((mPtr[ofs] == firstC) && (String.Compare(mPtr + ofs + 1, subStr.mLength - 1, subStr.mPtr + 1, subStr.mLength - 1, ignoreCase) == 0))
return ofs;
}
@ -2913,7 +2913,7 @@ namespace System
for (int ofs = startIdx; ofs <= mLength - subStr.mLength; ofs++)
{
if (((mPtr[ofs] == firstC) || (mPtr[ofs] == firstC2)) &&
(String.[Friend]Compare(mPtr + ofs + 1, subStr.mLength - 1, subStr.mPtr + 1, subStr.mLength - 1, ignoreCase) == 0))
(String.Compare(mPtr + ofs + 1, subStr.mLength - 1, subStr.mPtr + 1, subStr.mLength - 1, ignoreCase) == 0))
return ofs;
}
}

View file

@ -88,7 +88,7 @@ namespace System.Threading.Tasks
protected TResult GetResultCore(bool waitCompletionNotification)
{
// If the result has not been calculated yet, wait for it.
if (!IsCompleted) this.[Friend]InternalWait(Timeout.Infinite, default(CancellationToken)); // won't throw if task faulted or canceled; that's handled below
if (!IsCompleted) InternalWait(Timeout.Infinite, default(CancellationToken)); // won't throw if task faulted or canceled; that's handled below
// Notify the debugger of the wait completion if it's requested such a notification
//TODO: Implement

View file

@ -26,7 +26,7 @@ namespace System.Threading
{
static Object Thread_Alloc()
{
return Thread.[Friend]CreateEmptyThread();
return Thread.CreateEmptyThread();
}
static Object Thread_GetMainThread()