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

Merged
merged 13 commits into from
Sep 2, 2024
Merged

Remove unused c code #949

merged 13 commits into from
Sep 2, 2024

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

@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
@eivindjahren eivindjahren force-pushed the remove_unused_buffer branch 2 times, most recently from 3d9ea7d to 5465b0d Compare August 8, 2024 05:08
@eivindjahren eivindjahren marked this pull request as ready for review September 2, 2024 06:00
Copy link
Contributor

@andreas-el andreas-el left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@eivindjahren eivindjahren merged commit 65e96b9 into main Sep 2, 2024
19 checks passed
@eivindjahren eivindjahren deleted the remove_unused_buffer branch September 2, 2024 09:44
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.

2 participants