diff options
-rw-r--r-- | application.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/application.rb b/application.rb index ff3abe7..9d8c0d5 100644 --- a/application.rb +++ b/application.rb @@ -43,19 +43,6 @@ helpers do url_for "/#{id}", :full end - def uri_available?(urlStr) - url = URI.parse(urlStr) - unless @subjectid - Net::HTTP.start(url.host, url.port) do |http| - return http.head(url.request_uri).code == "200" - end - else - Net::HTTP.start(url.host, url.port) do |http| - return http.post(url.request_uri, "subjectid=#{@subjectid}").code == "202" - end - end - end - def activity(a) case a.to_s when "true" |