From 6c0b68255c0c66d90c0473561461d9215860f018 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Thu, 24 Apr 2014 20:06:23 -0400 Subject: [PATCH] Remove unused tutorial_group and tutorial_links queries. --- .../app/controllers/users_controller.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/apps/workbench/app/controllers/users_controller.rb b/apps/workbench/app/controllers/users_controller.rb index 3077c2f6d3..a3756e896a 100644 --- a/apps/workbench/app/controllers/users_controller.rb +++ b/apps/workbench/app/controllers/users_controller.rb @@ -113,22 +113,6 @@ class UsersController < ApplicationController order('created_at desc'). where(created_by: current_user.uuid) - - # A Tutorial is a Link which has link_class "resources" and name - # "wants", and is owned by the Tutorials Group (i.e., named - # "Arvados Tutorials" and owned by the system user). - @tutorial_group = Group.where(owner_uuid: User.system.uuid, - name: 'Arvados Tutorials').first - if @tutorial_group - @tutorial_links = Link.where(tail_uuid: @tutorial_group.uuid, - link_class: 'resources', - name: 'wants') - else - @tutorial_links = [] - end - @tutorial_complete = { - 'Run a job' => @my_last_job - } respond_to do |f| f.js { render template: 'users/home.js' } f.html { render template: 'users/home' } -- 2.39.5