Skip to content

Commit

Permalink
Remove unnecessary method
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs committed Nov 2, 2023
1 parent 807cead commit 3b974a6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/lib/y2storage/encryption_method/tpm_fde.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ def create_device(blk_device, dm_name, label: "")
encryption_process.create_device(blk_device, dm_name, label: label)
end

# Special method used in the tests to reset all memoizations
def reset
@tpm_present = nil
end

private

# @see Base#encryption_process
Expand Down
1 change: 0 additions & 1 deletion test/y2storage/encryption_method/tpm_fde_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
describe "#available? and #possible?" do
before do
Y2Storage::StorageManager.create_test_instance
subject.reset

allow(Yast::Execute).to receive(:on_target!).with(/fdectl/, "tpm-present") do
raise(Cheetah::ExecutionFailed.new("", "", "", "")) unless tpm_present
Expand Down

0 comments on commit 3b974a6

Please sign in to comment.