From 53a89f28a0cf46cb777d8e5bd2cabce0b844070f Mon Sep 17 00:00:00 2001 From: Felix Rabe Date: Sun, 7 Jul 2019 22:13:17 +0200 Subject: [PATCH] Remove dead code (unused as of d5391686a) (#1022) --- src/platform_impl/macos/util/into_option.rs | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/platform_impl/macos/util/into_option.rs diff --git a/src/platform_impl/macos/util/into_option.rs b/src/platform_impl/macos/util/into_option.rs deleted file mode 100644 index 4fd32e73..00000000 --- a/src/platform_impl/macos/util/into_option.rs +++ /dev/null @@ -1,14 +0,0 @@ -use cocoa::base::{id, nil}; - -pub trait IntoOption: Sized { - fn into_option(self) -> Option; -} - -impl IntoOption for id { - fn into_option(self) -> Option { - match self != nil { - true => Some(self), - false => None, - } - } -}