summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/api/entities.rb6
-rw-r--r--lib/api/projects.rb11
2 files changed, 0 insertions, 17 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 1ecf50cd595..b62afb4bb4c 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -91,12 +91,6 @@ module API
end
end
- class SimpleProject < Grape::Entity
- expose :id
- expose :name, :name_with_namespace
- expose :http_url_to_repo
- end
-
class ProjectMember < UserBasic
expose :access_level do |user, options|
options[:project].project_members.find_by(user_id: user.id).access_level
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 9448af92a98..844547665ef 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -32,17 +32,6 @@ module API
end
end
- # Get a simplified project list for authenticated user
- #
- # Example Request:
- # GET /projects/simple
- get '/simple' do
- @projects = current_user.authorized_projects
- @projects = filter_projects(@projects)
- @projects = paginate @projects
- present @projects, with: Entities::SimpleProjectWithAccess, user: current_user
- end
-
# Get an owned projects list for authenticated user
#
# Example Request: