# ollama: Remove dead code \(\#38550\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d5a99d079e6ed52aefa491160fe009e937616f31)

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

Visibility: public

Requested revision: d5a99d079e6ed52aefa491160fe009e937616f31

Requested commit: d5a99d079e6ed52aefa491160fe009e937616f31

Commit: d5a99d079e6ed52aefa491160fe009e937616f31

Tree: 1c77c36c5fa31580112836220f2619b475f6b0b5

Author: tidely

Committer: GitHub

## Message

```
ollama: Remove dead code (#38550)

The `Duration` argument in `get_models` has been unused for over a year.

The `complete` function is also unused and it has fallen behind in new
feature additions such as Authorization support. This used to exist
because ollama didn't support tools in streaming mode, `with_tools` also
existed because of that. Now however there is no reason to keep this
around.

`ChatResponseDelta ` had unnecessary `#[allow(unused)]` macros since the
fields are marked `pub`. Using `#[expect(unused)]` would've caught this.

Release Notes:

- N/A
```

## Parents

- [9418a2f4bcb277b3992c2003e84e20687af7cc4b](https://git.cafe/gitcafe/zed/commit/9418a2f4bcb277b3992c2003e84e20687af7cc4b?format=markdown)

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