#[cfg_attr(test, allow(dead_code))]
pub unsafe fn init() {}

pub unsafe fn cleanup() {}

pub struct Handler;

impl Handler {
    pub unsafe fn new() -> Handler {
        Handler
    }
}

#[cfg_attr(test, allow(dead_code))]
pub unsafe fn init() {}

pub unsafe fn cleanup() {}

--- 
+++ 
@@ -1,11 +1,3 @@
-pub struct Handler;
-
-impl Handler {
-    pub unsafe fn new() -> Handler {
-        Handler
-    }
-}
-
 #[cfg_attr(test, allow(dead_code))]
 pub unsafe fn init() {}
 
Remove unnecessary stack overflow handler stub for sgx.
