From c99bba1655470b8b48b00333ee728b0c4a716500 Mon Sep 17 00:00:00 2001 From: Murarth Date: Sat, 31 Aug 2019 01:58:45 -0700 Subject: [PATCH] Remove unused unix dlopen module (#1138) --- src/platform_impl/linux/dlopen.rs | 15 --------------- src/platform_impl/linux/mod.rs | 1 - 2 files changed, 16 deletions(-) delete mode 100644 src/platform_impl/linux/dlopen.rs diff --git a/src/platform_impl/linux/dlopen.rs b/src/platform_impl/linux/dlopen.rs deleted file mode 100644 index 8be592e4..00000000 --- a/src/platform_impl/linux/dlopen.rs +++ /dev/null @@ -1,15 +0,0 @@ -#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))] -#![allow(dead_code)] - -use std::os::raw::{c_char, c_int, c_void}; - -pub const RTLD_LAZY: c_int = 0x001; -pub const RTLD_NOW: c_int = 0x002; - -#[link(name = "dl")] -extern "C" { - pub fn dlopen(filename: *const c_char, flag: c_int) -> *mut c_void; - pub fn dlerror() -> *mut c_char; - pub fn dlsym(handle: *mut c_void, symbol: *const c_char) -> *mut c_void; - pub fn dlclose(handle: *mut c_void) -> c_int; -} diff --git a/src/platform_impl/linux/mod.rs b/src/platform_impl/linux/mod.rs index 420fa469..bc960190 100644 --- a/src/platform_impl/linux/mod.rs +++ b/src/platform_impl/linux/mod.rs @@ -18,7 +18,6 @@ use crate::{ window::{CursorIcon, Fullscreen, WindowAttributes}, }; -mod dlopen; pub mod wayland; pub mod x11;