# Writer: Delete writePreserve/writeAllPreserve · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/3280fc98f3b0400c4ce0b8c54a157f1858490351)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 3280fc98f3b0400c4ce0b8c54a157f1858490351

Requested commit: 3280fc98f3b0400c4ce0b8c54a157f1858490351

Commit: 3280fc98f3b0400c4ce0b8c54a157f1858490351

Tree: 7eb0a734a889c103d3d140964ca8ff01e5844f78

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
Writer: Delete writePreserve/writeAllPreserve

This is one way of partially addressing https://github.com/ziglang/zig/issues/24767

- These functions are unused
- These functions are untested
- These functions are broken
  + The same dangling pointer bug from 6219c015d8e8c958d96e5caa5ef0dbab9c414996 exists in `writePreserve`
  + The order of the bytes preserved in relation to the `bytes` being written can differ depending on unused buffer capacity at the time of the call and the drain implementation.

If there ends up being a need for these functions, they can be fixed and added back.

```

## Parents

- [b9a6dae2ae68d74d7f2fc2bfe394eb506fb7ca69](https://git.cafe/gitcafe/zig/commit/b9a6dae2ae68d74d7f2fc2bfe394eb506fb7ca69?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/3280fc98f3b0400c4ce0b8c54a157f1858490351?format=markdown)
