Revert "net: add SocketAddr::as_abstract_namespace (#6144)" (#6198)

This reverts commit 2400769b54fd31186b07bfbec277e846e8d64c16.
This commit is contained in:
Alice Ryhl 2023-12-08 18:44:32 +01:00 committed by GitHub
parent 83b7397e44
commit debcb2254a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,15 +22,6 @@ impl SocketAddr {
pub fn as_pathname(&self) -> Option<&Path> {
self.0.as_pathname()
}
/// Returns the contents of this address if it is an abstract namespace.
///
/// See also the standard library documentation on [`SocketAddr`].
///
/// [`SocketAddr`]: std::os::unix::net::SocketAddr
pub fn as_abstract_namespace(&self) -> Option<&[u8]> {
self.0.as_abstract_namespace()
}
}
impl fmt::Debug for SocketAddr {