]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/urls/urls.factor
unix.ffi, windows.winsock: wraps for servent functions
[factor.git] / basis / urls / urls.factor
index c36b8b08296a43995fe6bfc87b67d7f6a946cd16..66e6ee01eb4ec703af0619412d3363aa431fa126 100644 (file)
@@ -87,14 +87,6 @@ M: string >url
 
 M: pathname >url string>> >url ;
 
-: protocol-port ( protocol -- port )
-    {
-        { "http" [ 80 ] }
-        { "https" [ 443 ] }
-        { "ftp" [ 21 ] }
-        [ drop f ]
-    } case ;
-
 : relative-url ( url -- url' )
     clone
         f >>protocol