-
Notifications
You must be signed in to change notification settings - Fork 282
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
fix(canon): cleanup canonAf2 and canonAf3 related code #2089
Conversation
Codecov Report
@@ Coverage Diff @@
## update_canon_tags_2 #2089 +/- ##
======================================================
Coverage ? 61.97%
======================================================
Files ? 96
Lines ? 19055
Branches ? 9782
======================================================
Hits ? 11810
Misses ? 4962
Partials ? 2283 Continue to review full report at Codecov.
|
@hassec The question is if we would like to get to a point where we have the same tags as the Exiftool in Exiv2. Removing them would go into the opposite direction |
@alexvanderberkel I'm not sure if I understand that point. The changes here only remove dead code. There are no functional changes. And |
might be that I made a mistake or havent coded it correctly. Reason why I added the tags is https://exiftool.org/TagNames/Canon.html#AFInfo2 which slidely differ from AFInfo |
So in Maybe it's easiest to have a quick chat on matrix to get on the same page? 😉 |
I'm going to keep out of this. Really pleased:
Have a great weekend, everybody. |
I have mixed feelings about this. On the one hand it is true that right now that code is "Dead Code". On the other hand, it might be simple to cover that code by adding a new test? |
No, it's not "dead" in a way that it's not called because we don't have a file that needs it. It's dead in the sense that there is no c++ code path that could possibly ever invoke these lines. |
Oh ... I understand now. Then for me it is fine to get rid of this. Anyways, I'll leave the approval for @alexvanderberkel , since I do not want to interfere with decisions on the work being done at |
@hassec is correct that the CanonAF data structures are dead code. They should not have been included in PR #981. I'm very pleased that @hassec has understood the purpose of |
For me it would be okay now to remove it! Thanks @hassec |
@hassec and @alexvanderberkel I have removed the discussion about tagInfo and opened a new issue. #2097 |
this PR is targeting @alexvanderberkel's canon tags PR.
@alexvanderberkel there is a lot of unused code in
canonmn_int.cpp
but I've tried to only focus on theAf2
andAf3
fields here.I think we should include this to make it more obvious that e.g.
tagListAf2()
just never gets called.