Added static modifier to methods which could have it.

This commit is contained in:
Jarl Gullberg 2017-05-29 20:19:17 +02:00
parent 57de60ba96
commit 8514b5c78e
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23

View file

@ -169,7 +169,7 @@ namespace OpenTK.Rewrite
} }
} }
int GetSlot(MethodDefinition signature) static int GetSlot(MethodDefinition signature)
{ {
// Pretend there is no slots if we want to force everything to work through DllImport (Android & iOS) // Pretend there is no slots if we want to force everything to work through DllImport (Android & iOS)
if (dllimport) if (dllimport)
@ -219,7 +219,7 @@ namespace OpenTK.Rewrite
} }
} }
void RemoveNativeSignatures(TypeDefinition type, List<MethodDefinition> methods) static void RemoveNativeSignatures(TypeDefinition type, List<MethodDefinition> methods)
{ {
// Remove all DllImports for functions called through calli, since // Remove all DllImports for functions called through calli, since
// their signatures are embedded directly into the calli callsite. // their signatures are embedded directly into the calli callsite.
@ -230,7 +230,7 @@ namespace OpenTK.Rewrite
} }
} }
void RemoveSupportingAttributes(TypeDefinition type) static void RemoveSupportingAttributes(TypeDefinition type)
{ {
foreach (var method in type.Methods) foreach (var method in type.Methods)
{ {