Skip to content

Commit 5d93510

Browse files
Critsium-xyclaude
andcommitted
refactor(cell): remove unused cross-module includes in read_atoms.cpp
Drop two dead includes that create needless reverse dependencies from source_cell onto higher layers: - source_estate/read_orb.h (elecstate::read_orb_file not used here; the real user is read_atoms_helper.cpp) - source_basis/module_ao/ORB_read.h (ORB / LCAO_Orbitals not used here) Verified by compiling the `cell` target with ENABLE_LCAO=ON so the former `#ifdef __LCAO` block was actually exercised. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 51e2074 commit 5d93510

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

source/source_cell/read_atoms.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,11 @@
88
#include "source_io/module_parameter/parameter.h"
99
#include "print_cell.h"
1010
#include "read_stru.h"
11-
#include "source_estate/read_orb.h"
1211
#include "source_base/timer.h"
1312
#include "source_base/constants.h"
1413
#include "source_base/formatter.h"
1514
#include "source_base/mathzone.h"
1615

17-
#ifdef __LCAO
18-
#include "source_basis/module_ao/ORB_read.h" // to use 'ORB' -- mohan 2021-01-30
19-
#endif
20-
2116
bool unitcell::read_atom_positions(UnitCell& ucell,
2217
std::ifstream &ifpos,
2318
std::ofstream &ofs_running,

0 commit comments

Comments
 (0)