Skip to content

Commit

Permalink
fixup! Calculate checksums once
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Apr 17, 2017
1 parent 3f4eae6 commit b6fe2bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions lib/nanoc/base/services/compiler.rb
Expand Up @@ -155,9 +155,6 @@ def store_pre_compilation_state_stage
@_store_pre_compilation_state_stage ||= Stages::StorePreCompilationState.new(
reps: @reps,
layouts: site.layouts,
items: site.items,
code_snippets: site.code_snippets,
config: site.config,
checksum_store: checksum_store,
action_sequence_store: action_sequence_store,
action_sequences: @action_sequences,
Expand Down
Expand Up @@ -2,17 +2,12 @@ module Nanoc::Int::Compiler::Stages
class StorePreCompilationState
include Nanoc::Int::ContractsSupport

def initialize(reps:, layouts:, items:, code_snippets:, config:, checksum_store:, action_sequence_store:, action_sequences:)
def initialize(reps:, layouts:, checksum_store:, action_sequence_store:, action_sequences:)
@reps = reps
@layouts = layouts
@checksum_store = checksum_store
@action_sequence_store = action_sequence_store
@action_sequences = action_sequences

# TODO: Remove
@items = items
@code_snippets = code_snippets
@config = config
end

contract Nanoc::Int::ChecksumCollection => C::Any
Expand Down

0 comments on commit b6fe2bd

Please sign in to comment.