From 08168ca181746e44454c7294e969dbb49284afbd Mon Sep 17 00:00:00 2001 From: Paul McMahon Date: Tue, 9 Jun 2020 02:23:57 +0900 Subject: [PATCH] Remove unused fixtures (#2332) In 09fbd968ae21dd9164e81481a1809c9b0075f08f fixtures were added that weren't used, and so it looks like they were committed by accident. This commit removes these unused fixtures, and removes data in page.yml that wasn't actually used. --- middleman-core/fixtures/data-app/data/pages.yml | 10 ---------- middleman-core/fixtures/data-app/source/first.html.erb | 3 --- middleman-core/fixtures/data-app/source/last.html.erb | 3 --- middleman-core/fixtures/data-app/source/layout.erb | 6 ------ .../fixtures/data-app/source/no-layout.html.erb | 5 ----- middleman-core/fixtures/data-app/source/random | 0 middleman-core/fixtures/data-app/source/two.html.erb | 1 - .../fixtures/incremental-build-app/config.rb | 3 --- .../fixtures/incremental-build-app/data/people.yml | 6 ------ .../incremental-build-app/source/person.html.erb | 1 - 10 files changed, 38 deletions(-) delete mode 100644 middleman-core/fixtures/data-app/source/first.html.erb delete mode 100644 middleman-core/fixtures/data-app/source/last.html.erb delete mode 100644 middleman-core/fixtures/data-app/source/layout.erb delete mode 100644 middleman-core/fixtures/data-app/source/no-layout.html.erb delete mode 100644 middleman-core/fixtures/data-app/source/random delete mode 100644 middleman-core/fixtures/data-app/source/two.html.erb delete mode 100644 middleman-core/fixtures/incremental-build-app/config.rb delete mode 100644 middleman-core/fixtures/incremental-build-app/data/people.yml delete mode 100644 middleman-core/fixtures/incremental-build-app/source/person.html.erb diff --git a/middleman-core/fixtures/data-app/data/pages.yml b/middleman-core/fixtures/data-app/data/pages.yml index 0cd5973b..293ca6cb 100644 --- a/middleman-core/fixtures/data-app/data/pages.yml +++ b/middleman-core/fixtures/data-app/data/pages.yml @@ -1,16 +1,6 @@ - from: "/test1.html" to: "/index.html" - guid: 0 - from: "/test2.html" to: "/index.html" - guid: 1 -- - from: "/test3.html" - to: "/index.html" - guid: 2 -- - from: "/test4.html" - to: "/index.html" - guid: 3 \ No newline at end of file diff --git a/middleman-core/fixtures/data-app/source/first.html.erb b/middleman-core/fixtures/data-app/source/first.html.erb deleted file mode 100644 index 70c600c4..00000000 --- a/middleman-core/fixtures/data-app/source/first.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -<%= data.pages.first %> -<%#= data.pages.first(2) %> -<%#= data.pages.first(2).first %> \ No newline at end of file diff --git a/middleman-core/fixtures/data-app/source/last.html.erb b/middleman-core/fixtures/data-app/source/last.html.erb deleted file mode 100644 index e42a594e..00000000 --- a/middleman-core/fixtures/data-app/source/last.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -<%= data.pages.last %> -<%#= data.pages.last(2) %> -<%#= data.pages.last(2).last %> \ No newline at end of file diff --git a/middleman-core/fixtures/data-app/source/layout.erb b/middleman-core/fixtures/data-app/source/layout.erb deleted file mode 100644 index 764e2955..00000000 --- a/middleman-core/fixtures/data-app/source/layout.erb +++ /dev/null @@ -1,6 +0,0 @@ - - - <%#= data.pages[1].guid %> - <%= yield %> - - \ No newline at end of file diff --git a/middleman-core/fixtures/data-app/source/no-layout.html.erb b/middleman-core/fixtures/data-app/source/no-layout.html.erb deleted file mode 100644 index 7469e6ea..00000000 --- a/middleman-core/fixtures/data-app/source/no-layout.html.erb +++ /dev/null @@ -1,5 +0,0 @@ ---- -layout: false ---- - -No layout \ No newline at end of file diff --git a/middleman-core/fixtures/data-app/source/random b/middleman-core/fixtures/data-app/source/random deleted file mode 100644 index e69de29b..00000000 diff --git a/middleman-core/fixtures/data-app/source/two.html.erb b/middleman-core/fixtures/data-app/source/two.html.erb deleted file mode 100644 index d8263ee9..00000000 --- a/middleman-core/fixtures/data-app/source/two.html.erb +++ /dev/null @@ -1 +0,0 @@ -2 \ No newline at end of file diff --git a/middleman-core/fixtures/incremental-build-app/config.rb b/middleman-core/fixtures/incremental-build-app/config.rb deleted file mode 100644 index 98c47ee9..00000000 --- a/middleman-core/fixtures/incremental-build-app/config.rb +++ /dev/null @@ -1,3 +0,0 @@ -# data.people.each do |p| -# proxy "/#{p.slug}.html", '/person.html', ignore: true, locals: { person: p } -# end diff --git a/middleman-core/fixtures/incremental-build-app/data/people.yml b/middleman-core/fixtures/incremental-build-app/data/people.yml deleted file mode 100644 index 1e5fd05f..00000000 --- a/middleman-core/fixtures/incremental-build-app/data/people.yml +++ /dev/null @@ -1,6 +0,0 @@ -- - slug: "one" - name: "Person One" -- - slug: "two" - name: "Person Two" \ No newline at end of file diff --git a/middleman-core/fixtures/incremental-build-app/source/person.html.erb b/middleman-core/fixtures/incremental-build-app/source/person.html.erb deleted file mode 100644 index 68676d83..00000000 --- a/middleman-core/fixtures/incremental-build-app/source/person.html.erb +++ /dev/null @@ -1 +0,0 @@ -<%= person.name %> \ No newline at end of file