about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorStefan Lankes <slankes@eonerc.rwth-aachen.de>2020-06-14 00:38:31 +0200
committerStefan Lankes <slankes@eonerc.rwth-aachen.de>2020-06-14 00:38:31 +0200
commitc99116afe37d5a1dde65ed8a2e107892be81b20a (patch)
tree1ef2df737fd032f41df4a6b3ee35bfa5fdb2c679 /src/libstd
parent71d41d9e9f020c9eb527a47e16e4041dfcdaef84 (diff)
downloadrust-c99116afe37d5a1dde65ed8a2e107892be81b20a.tar.gz
rust-c99116afe37d5a1dde65ed8a2e107892be81b20a.zip
remove unused function
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sys/hermit/net.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libstd/sys/hermit/net.rs b/src/libstd/sys/hermit/net.rs
index 2fef8d381ca..70c010e6232 100644
--- a/src/libstd/sys/hermit/net.rs
+++ b/src/libstd/sys/hermit/net.rs
@@ -23,12 +23,6 @@ pub fn init() -> io::Result<()> {
 #[derive(Debug, Clone)]
 pub struct Socket(abi::Handle);
 
-impl Socket {
-    fn new(handle: abi::Handle) -> Socket {
-        Socket(handle)
-    }
-}
-
 impl AsInner<abi::Handle> for Socket {
     fn as_inner(&self) -> &abi::Handle {
         &self.0