remove unused functions
parent
dbd510ef19
commit
58a356e1f7
|
@ -59,17 +59,6 @@ typedef struct Silkworm_Vector2
|
|||
float y;
|
||||
} Silkworm_Vector2;
|
||||
|
||||
static inline Silkworm_Vector2 Vector2_Normalize(Silkworm_Vector2 vector)
|
||||
{
|
||||
float length = sqrtf(vector.x * vector.x + vector.y * vector.y);
|
||||
|
||||
Silkworm_Vector2 normalized;
|
||||
normalized.x = vector.x / length;
|
||||
normalized.y = vector.y / length;
|
||||
|
||||
return normalized;
|
||||
}
|
||||
|
||||
typedef struct Silkworm_Link Silkworm_Link;
|
||||
|
||||
typedef struct Silkworm_NodeClothReference
|
||||
|
@ -413,16 +402,6 @@ void Silkworm_Init()
|
|||
context->vertexBuffer = Silkworm_malloc(sizeof(Silkworm_Vertex) * context->vertexCapacity);
|
||||
}
|
||||
|
||||
static inline Silkworm_Node* LookupNode(uint64_t nodeId)
|
||||
{
|
||||
return context->nodes[nodeId];
|
||||
}
|
||||
|
||||
static inline Silkworm_Link* LookupLink(uint64_t linkId)
|
||||
{
|
||||
return context->links[linkId];
|
||||
}
|
||||
|
||||
static inline Silkworm_Cloth* LookupCloth(uint64_t clothId)
|
||||
{
|
||||
return context->cloths[clothId];
|
||||
|
|
Loading…
Reference in New Issue