Skip to content

dd: Eliminate code duplication #2572

@backwaterred

Description

@backwaterred

dd contains functions dd_fileout and dd_stdout which repeat the same code. The same issue is present with duplicate write_blocks procedures. @miDeb suggested this patch, which solves this issue by creating a OutputTrait which can be implemented generically for all outputs. This seems to be a good solution, but others could be considered as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions