-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up FC #1584
Comments
I've been wanting to knock out some warnings coming from FC as well; is it alright if I just tag those commits onto this issue? |
CMakeModules/FindBoost.cmake does not seem to work on my Windows machine (very recent cmake and boost versions). If I remove it (thereby using the default one that comes with cmake), everything works. Building bitshares-core works fine even with the existence of libraries/fc/CMakeModules/FindBoost.cmake, but it may be that cmake uses its own instead of the one buried in our repository. My guess is that if FindBoost.cmake was removed from our fc repository, older versions of cmake or boost may break. Hence, I do not want to remove it without knowing why it is there. |
Response in http://public.kitware.com/Bug/view.php?id=14720 :
Confirmed to work by followup posters. I guess it's ok to remove if we put CMake 2.8.11 or higher into build requirements. |
Question: do we want to retain the ability to switch EC crypto between slow openssl and the fast secp256k1, or can EC openssl support be removed? |
If we remove it, do we still need openssl at all? Or can it be dropped as a dependency? |
OpenSSL will still be required. (Even the secp256k1-based uses it in some places, due to lack of certain primitives in that library.) |
Right, OK. So does it buy us anything to drop support for using openssl for EC signatures? If not, I suppose it makes sense to keep it. |
It's a simplification. If the code isn't used there's no need to keep (and maintain) it. |
Fair point. Go ahead and remove it, then :) Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. [1] |
Since we no longer support boost 1.57 nor lower versions, we can cleanup code like this:
|
User Story
As a developer I want to have the FC library cleaned up in order to get rid of broken/obsolete/unused code and reduce maintenance effort.
Much of the code in FC predates C++-11 and modern Boost. Both C++-11 and Boost have standardized or at least well-proven replacements for much of FC. We should get rid of all code in FC that is either unused by the core, or for which standard and/or Boost replacements exist.
Impacts
Describe which portion(s) of BitShares Core may be impacted by your request. Please tick at least one box.
Code quality
CORE TEAM TASK LIST
The text was updated successfully, but these errors were encountered: