X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=RSM%2Fasn1codec%2Fe2ap_engine%2Fasn_SEQUENCE_OF.c;fp=RSM%2Fasn1codec%2Fe2ap_engine%2Fasn_SEQUENCE_OF.c;h=0000000000000000000000000000000000000000;hb=5df0dc958b3df1759f01372f11c4eae29854562f;hp=4a47bc1d1071ccba00bdd6312d90a2d8c418564f;hpb=759122fd30e7ee7e83d84967f162d59a79818fc5;p=ric-plt%2Fresource-status-manager.git diff --git a/RSM/asn1codec/e2ap_engine/asn_SEQUENCE_OF.c b/RSM/asn1codec/e2ap_engine/asn_SEQUENCE_OF.c deleted file mode 100644 index 4a47bc1..0000000 --- a/RSM/asn1codec/e2ap_engine/asn_SEQUENCE_OF.c +++ /dev/null @@ -1,42 +0,0 @@ - -/*- - * Copyright (c) 2003, 2004 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -typedef A_SEQUENCE_OF(void) asn_sequence; - -void -asn_sequence_del(void *asn_sequence_of_x, int number, int _do_free) { - asn_sequence *as = (asn_sequence *)asn_sequence_of_x; - - if(as) { - void *ptr; - int n; - - if(number < 0 || number >= as->count) - return; /* Nothing to delete */ - - if(_do_free && as->free) { - ptr = as->array[number]; - } else { - ptr = 0; - } - - /* - * Shift all elements to the left to hide the gap. - */ - --as->count; - for(n = number; n < as->count; n++) - as->array[n] = as->array[n+1]; - - /* - * Invoke the third-party function only when the state - * of the parent structure is consistent. - */ - if(ptr) as->free(ptr); - } -} -