Skip to content
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

Remove unused c code #949

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Remove unused c code #949

wants to merge 15 commits into from

Conversation

eivindjahren
Copy link
Collaborator

@eivindjahren eivindjahren commented Jan 26, 2024

Removes unused c code now that only the python api and executables are considered public interface:

The current files that have been searched for unused c code

  • lib/util/buffer.cpp
  • lib/util/hash.cpp
  • lib/util/path_stack.cpp
  • lib/util/parser.cpp
  • lib/util/statistics.cpp
  • lib/util/cxx_string_util.cpp
  • lib/util/util.cpp
  • lib/util/util_opendir.cpp
  • lib/util/lookup_table.cpp
  • lib/util/util_unlink.cpp
  • lib/util/node_ctype.cpp
  • lib/util/string_util.cpp
  • lib/util/path.cpp
  • lib/util/util_lockf.cpp
  • lib/util/perm_vector.cpp
  • lib/util/util_symlink.cpp
  • lib/util/hash_sll.cpp
  • lib/util/util_abort.cpp
  • lib/util/util_zlib.cpp
  • lib/util/util_endian.cpp
  • lib/util/node_data.cpp
  • lib/util/test_work_area.cpp
  • lib/util/util_spawn.cpp
  • lib/util/mzran.cpp
  • lib/util/util_getuid.cpp
  • lib/util/test_util.cpp
  • lib/util/rd_version.cpp
  • lib/util/rng.cpp
  • lib/util/stringlist.cpp
  • lib/util/vector.cpp
  • lib/util/hash_node.cpp
  • lib/util/type_vector_functions.cpp
  • lib/resdata/rd_util.cpp
  • lib/resdata/rd_io_config.cpp
  • lib/resdata/rd_sum_tstep.cpp
  • lib/resdata/grid_dims.cpp
  • lib/resdata/rd_kw_functions.cpp
  • lib/resdata/rd_init_file.cpp
  • lib/resdata/well_state.cpp
  • lib/resdata/well_info.cpp
  • lib/resdata/smspec_node.cpp
  • lib/resdata/rd_rft_file.cpp
  • lib/resdata/rd_grav_common.cpp
  • lib/resdata/rd_rsthead.cpp
  • lib/resdata/rd_region.cpp
  • lib/resdata/rd_rft_cell.cpp
  • lib/resdata/rd_file_kw.cpp
  • lib/resdata/nnc_info.cpp
  • lib/resdata/rd_rst_file.cpp
  • lib/resdata/rd_box.cpp
  • lib/resdata/rd_grid_dims.cpp
  • lib/resdata/rd_sum_vector.cpp
  • lib/resdata/rd_grid_cache.cpp
  • lib/resdata/rd_kw.cpp
  • lib/resdata/well_conn_collection.cpp
  • lib/resdata/well_conn.cpp
  • lib/resdata/well_segment_collection.cpp
  • lib/resdata/rd_sum.cpp
  • lib/resdata/RDFilename.cpp
  • lib/resdata/rd_type_python.cpp
  • lib/resdata/rd_nnc_geometry.cpp
  • lib/resdata/rd_nnc_export.cpp
  • lib/resdata/rd_coarse_cell.cpp
  • lib/resdata/well_segment.cpp
  • lib/resdata/rd_sum_index.cpp
  • lib/resdata/nnc_vector.cpp
  • lib/resdata/well_branch_collection.cpp
  • lib/resdata/rd_sum_file_data.cpp
  • lib/resdata/rd_subsidence.cpp
  • lib/resdata/rd_unsmry_loader.cpp
  • lib/resdata/well_ts.cpp
  • lib/resdata/fault_block_layer.cpp
  • lib/resdata/rd_type.cpp
  • lib/resdata/FortIO.cpp
  • lib/resdata/well_rseg_loader.cpp
  • lib/resdata/rd_file_view.cpp
  • lib/resdata/rd_file.cpp
  • lib/resdata/rd_rft_node.cpp
  • lib/resdata/fault_block.cpp
  • lib/resdata/rd_smspec.cpp
  • lib/resdata/rd_sum_data.cpp
  • lib/resdata/layer.cpp
  • lib/resdata/rd_grav.cpp
  • lib/resdata/rd_nnc_data.cpp
  • lib/resdata/rd_grid.cpp
  • lib/resdata/rd_kw_grdecl.cpp
  • lib/geometry/geo_region.cpp
  • lib/geometry/geo_util.cpp
  • lib/geometry/geo_polygon.cpp
  • lib/geometry/geo_surface.cpp
  • lib/geometry/geo_polygon_collection.cpp
  • lib/geometry/geo_pointset.cpp
  • applications/resdata/sum_write.cpp
  • applications/resdata/view_summary.cpp
  • applications/resdata/kw_extract.cpp

@eivindjahren eivindjahren force-pushed the remove_unused_buffer branch 7 times, most recently from f0204d8 to 20a24b8 Compare January 26, 2024 12:16
@eivindjahren eivindjahren force-pushed the remove_unused_buffer branch 3 times, most recently from 1d7d136 to 1100749 Compare February 29, 2024 12:59
@eivindjahren eivindjahren force-pushed the remove_unused_buffer branch 9 times, most recently from edf74d8 to 1abdbf6 Compare April 23, 2024 11:12
@eivindjahren eivindjahren force-pushed the remove_unused_buffer branch 3 times, most recently from 4e64adc to 266d528 Compare May 14, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant