From 2573845cab63c28e58bf0839b580140634e422b5 Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Mon, 31 May 2021 19:46:48 +0200 Subject: [PATCH] Code cleanup --- src/hasp/hasp_attribute.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/hasp/hasp_attribute.cpp b/src/hasp/hasp_attribute.cpp index 7a9e3265..39da7789 100644 --- a/src/hasp/hasp_attribute.cpp +++ b/src/hasp/hasp_attribute.cpp @@ -1973,7 +1973,7 @@ void hasp_process_obj_attribute(lv_obj_t* obj, const char* attribute, const char break; default: { - break; // not found + ret = hasp_local_style_attr(obj, attribute, attr_hash, payload, update, val); } } @@ -2013,17 +2013,6 @@ void hasp_process_obj_attribute(lv_obj_t* obj, const char* attribute, const char } } - if(ret == HASP_ATTR_TYPE_NOT_FOUND) { - // bool result; - ret = hasp_local_style_attr(obj, attribute, attr_hash, payload, update, val); - // if(result) { - // ret = HASP_ATTR_TYPE_METHOD_OK; - // } else { - // ret = HASP_ATTR_TYPE_NOT_FOUND; - // } - // LOG_VERBOSE(TAG_ATTR, "%s %d ret:%d", __FILE__, __LINE__, ret); - } - // Positive return codes have returned a value, negative are warnings if(update && ret > 0) return; // done