Skip to content

Commit

Permalink
Removing dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Mar 31, 2022
1 parent 5cbe6dd commit 065fe17
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion config/concerns/sitemap.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Configure the sitemap to be generated from the routes config
###
{ join } = require 'path'
{ isGenerating } = require '../utils'
module.exports = ({ cms, pageTypes }) ->
module.exports = ->
return unless isGenerating
return unless process.env.URL # Sitemap fatally errors if missing

Expand Down
3 changes: 0 additions & 3 deletions services/craft.coffee
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import axios from 'axios'
import pickBy from 'lodash/pickBy'

# Check if generating
generating = process.env.npm_lifecycle_event == 'generate'

# Error object with custom handling
class CraftError extends Error
name: 'CraftError'
Expand Down

0 comments on commit 065fe17

Please sign in to comment.