If a library is licensed under the MIT license but has patented algorithms in its source, can I just pull out the source files I need that don't contain any of the aforementioned material and reference them directly in my project? In addition, the source files to be used are going to be used without any modifications. On top of that, do I need to do anything extra in the attributions portion of my theoretical software, such as specifying that no portions of this software are using any of the patented algorithms? I don't even know what the legalese for that will even look like if that is the case.
On normal occasions, I just tend to list it down as-is like below:
Link to Github repository or Website
MIT License Text
This is the first time I have encountered something like this, and unlike OpenCV where users can simply specify to put in the non-free flag when building its library, the one I'm currently looking at doesn't have that option.