Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/network/commit.rb')
-rw-r--r--app/models/network/commit.rb35
1 files changed, 0 insertions, 35 deletions
diff --git a/app/models/network/commit.rb b/app/models/network/commit.rb
deleted file mode 100644
index 8417f200e36..00000000000
--- a/app/models/network/commit.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-module Network
- class Commit
- include ActionView::Helpers::TagHelper
-
- attr_accessor :time, :spaces, :parent_spaces
-
- def initialize(raw_commit)
- @commit = raw_commit
- @time = -1
- @spaces = []
- @parent_spaces = []
- end
-
- def method_missing(m, *args, &block)
- @commit.send(m, *args, &block)
- end
-
- def space
- if @spaces.size > 0
- @spaces.first
- else
- 0
- end
- end
-
- def parents(map)
- @commit.parents.map do |p|
- if map.include?(p.id)
- map[p.id]
- end
- end
- .compact
- end
- end
-end