summaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-09-14 16:32:42 +0200
committerJochen Topf <jochen@topf.org>2014-09-14 16:41:57 +0200
commit0bce8570acd121ffb6b65ec58d7e678cbd89798f (patch)
treee38ae0d288bdf4542ee2d5ae708eada7392be602 /web/lib
parent8685384c806e75457c44ea542d39f961e9658dfc (diff)
downloadtaginfo-0bce8570acd121ffb6b65ec58d7e678cbd89798f.tar
taginfo-0bce8570acd121ffb6b65ec58d7e678cbd89798f.tar.gz
Removed unused Potlatch-related code.
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/api/v4/keys.rb3
-rw-r--r--web/lib/ui/test.rb34
2 files changed, 1 insertions, 36 deletions
diff --git a/web/lib/api/v4/keys.rb b/web/lib/api/v4/keys.rb
index 98d60c6..b0072ff 100644
--- a/web/lib/api/v4/keys.rb
+++ b/web/lib/api/v4/keys.rb
@@ -13,7 +13,7 @@ class Taginfo < Sinatra::Base
:parameters => { :query => 'Only show keys matching this query (substring match, optional).' },
:paging => :optional,
:filter => @@filters,
- :sort => %w( key count_all count_nodes count_ways count_relations values_all users_all in_wiki in_josm in_potlatch length ),
+ :sort => %w( key count_all count_nodes count_ways count_relations values_all users_all in_wiki in_josm length ),
:result => paging_results([
[:key, :STRING, 'Key'],
[:count_all, :INT, 'Number of objects in the OSM database with this key.'],
@@ -64,7 +64,6 @@ class Taginfo < Sinatra::Base
o.users_all
o.in_wiki
o.in_josm
- o.in_potlatch
o.length 'length(key)'
o.length :key
}.
diff --git a/web/lib/ui/test.rb b/web/lib/ui/test.rb
index 59a68ed..4b79765 100644
--- a/web/lib/ui/test.rb
+++ b/web/lib/ui/test.rb
@@ -14,38 +14,4 @@ class Taginfo < Sinatra::Base
erb :'test/wiki_import'
end
- get! '/test/potlatch' do
- @title = 'Potlatch'
-
- erb :'test/potlatch/index'
- end
-
- get '/test/potlatch/categories' do
- @title = 'Potlatch Features'
-
- @categories = @db.execute('SELECT * FROM potlatch.categories ORDER BY name')
-
- erb :'test/potlatch/categories'
- end
-
- get '/test/potlatch/categories/:category' do
- @category = params[:category]
- @features = @db.execute('SELECT * FROM potlatch.features WHERE category_id=? ORDER BY name', @category)
-
- erb :'test/potlatch/category', :layout => false
- end
-
- get '/test/potlatch/features/:feature' do
- @feature_name = params[:feature]
- @feature = @db.execute('SELECT * FROM potlatch.features WHERE name=?', @feature_name)[0]
- @tags = @db.execute('SELECT * FROM potlatch.tags WHERE feature_name=? ORDER BY key, value', @feature_name)
-
- erb :'test/potlatch/feature', :layout => false
- end
-
- get %r{/test/potlatch/icon/(.*)} do |icon|
- content_type :png
- send_file('../../var/sources/potlatch/resources/' + icon)
- end
-
end