diff options
Diffstat (limited to 'src/value.c')
-rw-r--r-- | src/value.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/value.c b/src/value.c index c18074f..33f0020 100644 --- a/src/value.c +++ b/src/value.c @@ -90,7 +90,6 @@ slv2_value_get_turtle_token(SLV2Value value) char* result = NULL; switch (value->type) { - case SLV2_VALUE_UI: case SLV2_VALUE_URI: len = strlen(value->str_val) + 3; result = calloc(len, sizeof(char)); @@ -119,14 +118,14 @@ slv2_value_get_turtle_token(SLV2Value value) bool slv2_value_is_uri(SLV2Value value) { - return (value->type == SLV2_VALUE_URI || value->type == SLV2_VALUE_UI); + return (value->type == SLV2_VALUE_URI); } const char* slv2_value_as_uri(SLV2Value value) { - assert(slv2_value_is_uri(value) || slv2_value_is_ui(value)); + assert(slv2_value_is_uri(value)); return value->str_val; } @@ -185,18 +184,3 @@ slv2_value_as_float(SLV2Value value) return (float)value->val.int_val; } - -bool -slv2_value_is_ui(SLV2Value value) -{ - return (value->type == SLV2_VALUE_UI); -} - - -SLV2UIType -slv2_value_as_ui_type(SLV2Value value) -{ - assert(slv2_value_is_ui(value)); - return value->val.ui_type_val; -} - |