From 61a142d570c549cba3f0bb1b6e234c827c74f2e7 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Sat, 27 Feb 2021 21:27:55 -0800 Subject: [PATCH] Remove print_message_from_rust --- main.c | 1 - src/lib.rs | 5 ----- 2 files changed, 6 deletions(-) diff --git a/main.c b/main.c index 25a8455..1cbd57c 100644 --- a/main.c +++ b/main.c @@ -47,7 +47,6 @@ void usage() { int main(int argc, char **argv) { - print_message_from_rust(); int read_flag = 0, write_flag = 0, config_flag = 0, csv_flag = 0; int list_flag = 0, verify_flag = 0; diff --git a/src/lib.rs b/src/lib.rs index 3b6ec3f..52f3ce9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,11 +3,6 @@ use libc::c_char; const COPYRIGHT: &'static str = "Copyright (C) 2018 Serge Vakulenko KK6ABQ"; -#[no_mangle] -pub extern "C" fn print_message_from_rust() { - println!("Calling from Rust!"); -} - #[no_mangle] pub extern "C" fn print_usage(version_ptr: *const c_char) { let version: String = unsafe { CStr::from_ptr(version_ptr) }.to_string_lossy().to_string();