-
Notifications
You must be signed in to change notification settings - Fork 122
remove kdbproposal.h #2993
Comments
I moved keyLock and elektraLockOptions to kdbprivate, because elektraKeyLock depends on them, and since kdbinternal depends on kdbprivate, the first two cannot live there. elektraKsToMemArray has 13 references, such as in libs/meta/meta.c, plugins/ini/ini.c, plugins/keytometa/keytometa.c, and more. Should this really be removed? ksRenameKeys has one reference in plugins/csvstorage. I can move the function into the plugin, and then delete it in all other places. elektraLookupOptions isn't used anyhwere atm. It also seems it won't have a use in #2983, so should this be removed? keyAsCascading has only usage in keyRel2, so can be removed if we remove keyRel2. |
Good.
No, then it should be moved to libease (libmeta depends on libease anyway, for the plugins it is no problem to depend on it)
Yes.
Move it to kdbprivate (it is internally in
Yes, I agree. You can add a |
I missed that |
Yes, the wrapper is not needed. If the core does not need it, then ksRenameKeys should be moved to elektra-ease. |
Moving The real question is, whether we should get rid of |
Nowhere as we want to get rid of this wrapping. There should be only ksRenameKeys (or elektraRenameKeys if it fits better to the other functions in libease) and nothing else.
Which one? Only plugins and tools? Then it would be no problem.
Yes, the file should be removed. |
Moving
If we leave it in core, then to which file should this be moved? |
There seems to be an easy solution: we simply move it to I would like to avoid having it in the core because it does not do anything that cannot easily programmed with the core API. A |
The implementation of the backend plugin moves the usage of |
@vLesk Thank you for the quick reply. Maybe the backend plugin needs to link against elektra-kdb anyway? If it is only about elektraRenameKeys, it is better if you copy that one function to have the backend plugin with clean dependencies. |
Do you want to me to (try) move it to Regarding I suppose we can either move them to some temporary location or replace the current occurences now and get rid of them. |
Yes, but maybe in a different PR, to do everything of #2993 is too big.
This is actually (maybe) a part of what the external iterator needs (if the iterator also has some pop functionality).
Yes, we can remove that. This is only for the internal iterator. |
Moving The declaration I would leave in |
I suppose The same then goes for
Once these are taken care of, this issue is done. |
In the beginning of src/libs/elektra/kdb.c there is already another helper function, maybe there?
Actually you can simply rename the function and move it to the core. The function is already needed by merging code and for bindings.
Yes, here we need a bit more of discussion, maybe we do not need ksPopAtCursor at all.
I created #3050 for discussion. |
There are also ./src/libs/elektra/proposal.c and ./src/libs/proposal/proposal.c which should be removed together with the header file. Thanks to you they are already nearly empty. I added the last leftovers in the top post:
|
@PhilippGackstatter what is the status on this? |
Sorry for the delay. |
I updated the notes above as @PhilippGackstatter noted that some cleanup is still to be done. ( |
|
./src/libs/elektra/proposal.c and ./src/libs/proposal/proposal.c
The text was updated successfully, but these errors were encountered: