]> git.openstreetmap.org Git - rails.git/commitdiff
Remove unused/non-functional tag searching methods
authorTom Hughes <tom@compton.nu>
Thu, 9 Sep 2010 20:32:15 +0000 (21:32 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 9 Sep 2010 20:32:15 +0000 (21:32 +0100)
app/controllers/changeset_tag_controller.rb [deleted file]
app/controllers/old_relation_tag_controller.rb [deleted file]
app/controllers/old_way_tag_controller.rb [deleted file]
app/controllers/relation_tag_controller.rb [deleted file]
app/controllers/way_tag_controller.rb [deleted file]
app/views/way_tag/search.html.erb [deleted file]
config/routes.rb

diff --git a/app/controllers/changeset_tag_controller.rb b/app/controllers/changeset_tag_controller.rb
deleted file mode 100644 (file)
index 374e21c..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-class ChangesetTagController < ApplicationController
-  layout 'site'
-
-  def search
-    @tags = ChangesetTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] )
-  end
-
-end
diff --git a/app/controllers/old_relation_tag_controller.rb b/app/controllers/old_relation_tag_controller.rb
deleted file mode 100644 (file)
index fba59a0..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-class OldRelationTagController < ApplicationController
-
-end
diff --git a/app/controllers/old_way_tag_controller.rb b/app/controllers/old_way_tag_controller.rb
deleted file mode 100644 (file)
index 02c1e2e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-class OldWayTagController < ApplicationController
-end
diff --git a/app/controllers/relation_tag_controller.rb b/app/controllers/relation_tag_controller.rb
deleted file mode 100644 (file)
index c58364c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-class RelationTagController < ApplicationController
-  layout 'site'
-
-  def search
-    @tags = RelationTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] )
-  end
-
-
-end
diff --git a/app/controllers/way_tag_controller.rb b/app/controllers/way_tag_controller.rb
deleted file mode 100644 (file)
index 02e7a68..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-class WayTagController < ApplicationController
-  layout 'site'
-
-  def search
-    @tags = WayTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] )
-  end
-
-
-end
diff --git a/app/views/way_tag/search.html.erb b/app/views/way_tag/search.html.erb
deleted file mode 100644 (file)
index 820bad7..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<h2>Search results</h5>
-fixme postcodes and geonames
-
-<% form_tag :controller => 'way_tag', :action => 'search' do %>
-<%= text_field 'query', 'query'%>
-<%= submit_tag 'Search' %>
-<% end %>
-
-
-<table border="0"> 
-  <% @tags.each do |tag| %>
-  <tr>
-    <td>
-      <%= link_to tag.v, :controller => 'site', :action => 'goto_way', :id => tag.id %> (k:<%= tag.k %>)<br>
-      <font size="-2" color="green">
-        Way <%= tag.id %> (<%= tag.way.timestamp %>)
-        <%= link_to 'Map', :controller => 'site', :action => 'goto_way', :id => tag.id %> - 
-        <%= link_to 'API', :controller => 'way', :action => 'rest', :id => tag.id %>
-        <br /><br/ >
-      </font>
-    </td>
-  </tr>
-  <% end %>
-</table>
index e2018784dd4162b8d5780001070ce66167106a79..4608fb32c8ed85f9dd44ef211b82743337f48018 100644 (file)
@@ -113,7 +113,6 @@ ActionController::Routing::Routes.draw do |map|
   map.connect '/index.html', :controller => 'site', :action => 'index'
   map.connect '/edit.html', :controller => 'site', :action => 'edit'
   map.connect '/export.html', :controller => 'site', :action => 'export'
-  map.connect '/search.html', :controller => 'way_tag', :action => 'search'
   map.connect '/login.html', :controller => 'user', :action => 'login'
   map.connect '/logout.html', :controller => 'user', :action => 'logout'
   map.connect '/create-account.html', :controller => 'user', :action => 'new'