Repository navigation
Delete unused code - #8771
Delete unused code#8771
Conversation
| impl NamedVectors { | ||
| pub fn add_vector(mut self, name: impl Into<String>, vector: impl Into<Vector>) -> Self { | ||
| self.0.insert(name.into(), vector.into()); | ||
| self | ||
| } | ||
| } |
There was a problem hiding this comment.
Please keep it, it's a part of public edge API.
| /// This function removes edge-specific config and closes the shard. | ||
| /// Removing config might be necessary to avoid incompatibilities on snapshot recovery. | ||
| pub fn drop_and_clean_config(self) -> OperationResult<()> { | ||
| let config_path = self.path.join(EDGE_CONFIG_FILE); | ||
| if config_path.exists() { | ||
| fs_err::remove_file(self.path.join(EDGE_CONFIG_FILE))?; | ||
| } | ||
| Ok(()) | ||
| } |
There was a problem hiding this comment.
@xzfc it was added by @generall in this commit: cf12a1e
That was the previous conversation: #8322 (comment)
Maybe this is just a utility function. @generall does that method still necessary?
There was a problem hiding this comment.
Merging with it removed now. We can always revive it from this PR. 👍
|
I summoned the token generator to dig the history: https://gist.github.com/xzfc/ba6cdc5318cd8d518502991beb1e670a |
timvisee
left a comment
There was a problem hiding this comment.
Removed some more bits in two follow up commits. Hope CI remains green, it's a bit hard to check all possible targets locally.
If not green, we can drop my commits.
b718277 to
9aa9616
Compare
* Delete unused code * restore initialize_global * drop BadShardSelection * Remove now obsolete allow(dead_code) attributes * Remove more dead code --------- Co-authored-by: timvisee <[email protected]>
This PR removes dead code that is both not used and not tested.
Keeping it around is a debt and a risk.