Skip to content

Commit

Permalink
Delete dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Aug 21, 2021
1 parent 265f085 commit f0a1616
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 52 deletions.
2 changes: 0 additions & 2 deletions app/source/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def initialize(externals)

# - - - - - - - - - - - - - - - - -

post_json(:model, :group_create2)
post_json(:model, :group_create)
get_json(:model, :group_exists?)
get_json(:model, :group_manifest)
Expand All @@ -22,7 +21,6 @@ def initialize(externals)

# - - - - - - - - - - - - - - - - -

post_json(:model, :kata_create2)
post_json(:model, :kata_create)
get_json(:model, :kata_download)
get_json(:model, :kata_exists?)
Expand Down
10 changes: 0 additions & 10 deletions app/source/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ def initialize(externals)

#- - - - - - - - - - - - - - - - - -

def group_create2(manifest:)
version = from_manifest(manifest)
group(version).create(manifest)
end

def group_create(manifest:)
version = from_manifest(manifest)
group(version).create(manifest)
Expand Down Expand Up @@ -60,11 +55,6 @@ def group_fork(id:, index:)

#- - - - - - - - - - - - - - - - - -

def kata_create2(manifest:)
version = from_manifest(manifest)
kata(version).create(manifest)
end

def kata_create(manifest:)
version = from_manifest(manifest)
kata(version).create(manifest)
Expand Down
6 changes: 3 additions & 3 deletions app/test/config/metrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
warnings:0,
skips:0,

duration:60,
duration:100,

test: {
lines: {
total:1743,
total:1731,
missed:0,
},
branches: {
Expand All @@ -24,7 +24,7 @@

code: {
lines: {
total:1246,
total:1238,
missed:10,
},
branches: {
Expand Down
19 changes: 1 addition & 18 deletions app/test/group_create2.rb → app/test/group_create.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require_relative 'test_base'

class GroupCreate2Test < TestBase
class GroupCreateTest < TestBase

def self.id58_prefix
'e08'
Expand All @@ -25,21 +25,4 @@ def self.id58_prefix
end
end

versions3_test 'h36', %w(
|POST /group_create(manifest)
|has status 200
|returns the id: of a new group
|that exists in saver
) do
assert_json_post_200(
path = 'group_create2',
{ manifest:custom_manifest }.to_json
) do |response|
assert_equal [path], response.keys, :keys
id = response[path]
assert group_exists?(id), :exists
assert_equal version, group_manifest(id)['version'], :version
end
end

end
19 changes: 1 addition & 18 deletions app/test/kata_create2.rb → app/test/kata_create.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require_relative 'test_base'

class KataCreate2Test < TestBase
class KataCreateTest < TestBase

def self.id58_prefix
'e09'
Expand All @@ -25,21 +25,4 @@ def self.id58_prefix
end
end

versions3_test 'h36', %w(
|POST /kata_create(manifest)
|has status 200
|returns the id: of a new kata
|that exists in saver
) do
assert_json_post_200(
path = 'kata_create2',
{ manifest:custom_manifest }.to_json
) do |response|
assert_equal [path], response.keys, :keys
id = response[path]
assert kata_exists?(id), :exists
assert_equal version, kata_manifest(id)['version'], :version
end
end

end
2 changes: 1 addition & 1 deletion client/test/config/metrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
code: {
lines: {
total:169,
missed:18,
missed:0,
},
branches: {
total:2,
Expand Down

0 comments on commit f0a1616

Please sign in to comment.