mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 12:36:17 +00:00
Remove redundant code
This commit is contained in:
parent
6d16ae8b91
commit
452c8f57f6
7
clay.h
7
clay.h
|
@ -1773,13 +1773,6 @@ Clay_LayoutElementHashMapItem *Clay__GetHashMapItem(uint32_t id) {
|
||||||
return &Clay_LayoutElementHashMapItem_DEFAULT;
|
return &Clay_LayoutElementHashMapItem_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
Clay_ElementId Clay__GenerateIdForAnonymousElement2() {
|
|
||||||
Clay_Context* context = Clay_GetCurrentContext();
|
|
||||||
Clay_LayoutElement *parentElement = Clay_LayoutElementArray_Get(&context->layoutElements, Clay__int32_tArray_GetValue(&context->openLayoutElementStack, context->openLayoutElementStack.length - 1));
|
|
||||||
Clay_ElementId elementId = Clay__HashNumber(parentElement->childrenOrTextContent.children.length, parentElement->id);
|
|
||||||
return elementId;
|
|
||||||
}
|
|
||||||
|
|
||||||
Clay_ElementId Clay__GenerateIdForAnonymousElement(Clay_LayoutElement *openLayoutElement) {
|
Clay_ElementId Clay__GenerateIdForAnonymousElement(Clay_LayoutElement *openLayoutElement) {
|
||||||
Clay_Context* context = Clay_GetCurrentContext();
|
Clay_Context* context = Clay_GetCurrentContext();
|
||||||
Clay_LayoutElement *parentElement = Clay_LayoutElementArray_Get(&context->layoutElements, Clay__int32_tArray_GetValue(&context->openLayoutElementStack, context->openLayoutElementStack.length - 2));
|
Clay_LayoutElement *parentElement = Clay_LayoutElementArray_Get(&context->layoutElements, Clay__int32_tArray_GetValue(&context->openLayoutElementStack, context->openLayoutElementStack.length - 2));
|
||||||
|
|
Loading…
Reference in a new issue