From 088ff9add7cd6aeb2b049711a009ac093122ba6c Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sat, 30 Apr 2022 10:16:48 +0800 Subject: [PATCH] samples: cleanup sample_tricore.c --- samples/sample_tricore.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/samples/sample_tricore.c b/samples/sample_tricore.c index 2983b2e5..1b7a5551 100644 --- a/samples/sample_tricore.c +++ b/samples/sample_tricore.c @@ -78,23 +78,7 @@ static void test_tricore(void) int main(int argc, char **argv, char **envp) { - // dynamically load shared library -#ifdef DYNLOAD - if (!uc_dyn_load(NULL, 0)) { - printf("Error dynamically loading shared library.\n"); - printf("Please check that unicorn.dll/unicorn.so is available as well " - "as\n"); - printf("any other dependent dll/so files.\n"); - printf("The easiest way is to place them in the same directory as this " - "app.\n"); - return 1; - } -#endif - test_tricore(); -#ifdef DYNLOAD - uc_dyn_free(); -#endif return 0; -} \ No newline at end of file +}