Skip to content

Remove unused cmath include from Index2Layer.cpp#4520

Closed
junjieqi wants to merge 4 commits intomainfrom
export-D79791397
Closed

Remove unused cmath include from Index2Layer.cpp#4520
junjieqi wants to merge 4 commits intomainfrom
export-D79791397

Conversation

@junjieqi
Copy link
Copy Markdown
Contributor

@junjieqi junjieqi commented Aug 8, 2025

Summary:

Instructions about RACER Diffs:

This diff was generated by Racer AI agent for your convenience on top of T233787758.

  • If you are happy with the changes, commandeer it if minor edits are needed. (we encourage commandeer to get the diff credit)
  • If you are not happy with the changes, please comment on the diff with clear actions and send it back to the author. Racer will pick it up and re-generate.
  • If you really feel the Racer is not helping with this change (alas, some complex changes are hard for AI) feel free to abandon this diff.

Summary:

Remove unused #include <cmath> from Index2Layer.cpp as part of unused header cleanup. The cmath header was included but no math functions (sqrt, log, exp, pow, sin, cos, etc.) are actually used in the implementation.

Generated by RACER, powered by Confucius
Session, Trace

Differential Revision: D79791397

Racer Engineer added 4 commits August 7, 2025 17:42
Summary:

## Instructions about RACER Diffs:
This diff was generated by Racer AI agent for your convenience on top of T233787758.

- If you are happy with the changes, commandeer it if minor edits are needed. (**we encourage commandeer to get the diff credit**)
- If you are not happy with the changes, please comment on the diff with clear actions and send it back to the author. Racer will pick it up and re-generate.
- If you really feel the Racer is not helping with this change (alas, some complex changes are hard for AI) feel free to abandon this diff.

## Summary:
Remove unused `#include <cmath>` from AutoTune.cpp as part of unused header cleanup. The cmath header was included but no math functions (sqrt, log, exp, pow, sin, cos, etc.) are actually used in the implementation.
---
> Generated by [RACER](https://www.internalfb.com/wiki/RACER_(Risk-Aware_Code_Editing_and_Refactoring)/), powered by [Confucius](https://www.internalfb.com/wiki/Confucius/Analect/Shared_Analects/Confucius_Code_Assist_(CCA)/)
[Session](https://www.internalfb.com/confucius?session_id=3ce94466-735e-11f0-a1a2-92d93dbc02cb&tab=Chat), [Trace](https://www.internalfb.com/confucius?session_id=3ce94466-735e-11f0-a1a2-92d93dbc02cb&tab=Trace)

Differential Revision: D79790353
Summary:

## Instructions about RACER Diffs:
This diff was generated by Racer AI agent for your convenience on top of T233787758.

- If you are happy with the changes, commandeer it if minor edits are needed. (**we encourage commandeer to get the diff credit**)
- If you are not happy with the changes, please comment on the diff with clear actions and send it back to the author. Racer will pick it up and re-generate.
- If you really feel the Racer is not helping with this change (alas, some complex changes are hard for AI) feel free to abandon this diff.

## Summary:
Remove unused `#include <cmath>` from IndexPQ.cpp as part of unused header cleanup. The cmath header was included but no math functions (sqrt, log, exp, pow, sin, cos, etc.) are actually used in the implementation.
---
> Generated by [RACER](https://www.internalfb.com/wiki/RACER_(Risk-Aware_Code_Editing_and_Refactoring)/), powered by [Confucius](https://www.internalfb.com/wiki/Confucius/Analect/Shared_Analects/Confucius_Code_Assist_(CCA)/)
[Session](https://www.internalfb.com/confucius?session_id=3ce94466-735e-11f0-a1a2-92d93dbc02cb&tab=Chat), [Trace](https://www.internalfb.com/confucius?session_id=3ce94466-735e-11f0-a1a2-92d93dbc02cb&tab=Trace)

Differential Revision: D79790790
Summary:
## Instructions about RACER Diffs:
This diff was generated by Racer AI agent for your convenience on top of T233787758.

- If you are happy with the changes, commandeer it if minor edits are needed. (**we encourage commandeer to get the diff credit**)
- If you are not happy with the changes, please comment on the diff with clear actions and send it back to the author. Racer will pick it up and re-generate.
- If you really feel the Racer is not helping with this change (alas, some complex changes are hard for AI) feel free to abandon this diff.

## Summary:
Remove unused `#include <cmath>` from IndexAdditiveQuantizer.cpp as part of unused header cleanup. The cmath header was included but no math functions (sqrt, log, exp, pow, sin, cos, etc.) are actually used in the implementation.
---
> Generated by [RACER](https://www.internalfb.com/wiki/RACER_(Risk-Aware_Code_Editing_and_Refactoring)/), powered by [Confucius](https://www.internalfb.com/wiki/Confucius/Analect/Shared_Analects/Confucius_Code_Assist_(CCA)/)
[Session](https://www.internalfb.com/confucius?session_id=3ce94466-735e-11f0-a1a2-92d93dbc02cb&tab=Chat), [Trace](https://www.internalfb.com/confucius?session_id=3ce94466-735e-11f0-a1a2-92d93dbc02cb&tab=Trace)

Differential Revision: D79791118
Summary:
## Instructions about RACER Diffs:
This diff was generated by Racer AI agent for your convenience on top of T233787758.

- If you are happy with the changes, commandeer it if minor edits are needed. (**we encourage commandeer to get the diff credit**)
- If you are not happy with the changes, please comment on the diff with clear actions and send it back to the author. Racer will pick it up and re-generate.
- If you really feel the Racer is not helping with this change (alas, some complex changes are hard for AI) feel free to abandon this diff.

## Summary:
Remove unused `#include <cmath>` from Index2Layer.cpp as part of unused header cleanup. The cmath header was included but no math functions (sqrt, log, exp, pow, sin, cos, etc.) are actually used in the implementation.
---
> Generated by [RACER](https://www.internalfb.com/wiki/RACER_(Risk-Aware_Code_Editing_and_Refactoring)/), powered by [Confucius](https://www.internalfb.com/wiki/Confucius/Analect/Shared_Analects/Confucius_Code_Assist_(CCA)/)
[Session](https://www.internalfb.com/confucius?session_id=3ce94466-735e-11f0-a1a2-92d93dbc02cb&tab=Chat), [Trace](https://www.internalfb.com/confucius?session_id=3ce94466-735e-11f0-a1a2-92d93dbc02cb&tab=Trace)

Differential Revision: D79791397
@meta-cla meta-cla Bot added the CLA Signed label Aug 8, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79791397

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants