Skip to content

Commit

Permalink
- code simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed May 19, 2014
1 parent a448db8 commit d00aed7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions src/modules/Partitions.rb
Expand Up @@ -301,6 +301,7 @@ def BootCyl
@boot_cyl
end


def PrepBoot
ret = Arch.ppc &&
(Arch.board_chrp || Arch.board_prep || Arch.board_iseries)
Expand All @@ -311,9 +312,9 @@ def PrepBoot
ret
end

def BootPrimary
ret = PrepBoot()
ret

def BootPrimary()
return PrepBoot()
end


Expand Down
11 changes: 6 additions & 5 deletions src/modules/StorageProposal.rb
Expand Up @@ -37,6 +37,10 @@
module Yast
class StorageProposalClass < Module


include Yast::Logger


def main

textdomain "storage"
Expand Down Expand Up @@ -4125,11 +4129,8 @@ def special_boot_proposal_prepare(partitions)
end
deep_copy(p)
end
Builtins.y2milestone(
"special_boot_proposal_prepare part:%1",
partitions
)
Builtins.y2milestone("special_boot_proposal_prepare ret:%1", ret)
log.info("special_boot_proposal_prepare part:#{partitions}")
log.info("special_boot_proposal_prepare ret:#{ret}")
end
deep_copy(ret)
end
Expand Down

0 comments on commit d00aed7

Please sign in to comment.