diff options
author | SeongJae Park <sj38.park@gmail.com> | 2024-03-09 13:07:48 -0800 |
---|---|---|
committer | SeongJae Park <sj38.park@gmail.com> | 2024-03-09 13:07:48 -0800 |
commit | f44386975ece782a180b43dca7fca570f71cf51a (patch) | |
tree | 5a2fdce26974bc803e488b2654f744d67447e356 | |
parent | 201271fd7a971f1a76b39b1b842e0dadcd3447ce (diff) | |
download | damo-f44386975ece782a180b43dca7fca570f71cf51a.tar.gz |
_damon_sysfs: Remove unused function, __ensure_target_dir_populated()
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r-- | _damon_sysfs.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/_damon_sysfs.py b/_damon_sysfs.py index 93e254f9..2c3faa3b 100644 --- a/_damon_sysfs.py +++ b/_damon_sysfs.py @@ -723,14 +723,6 @@ def __ensure_scheme_dir_populated(scheme_dir, scheme): if int(nr_goals) != len(scheme.quotas.goals): _damo_fs.write_file(nr_goals_path, '%d' % len(scheme.quotas.goals)) -def __ensure_target_dir_populated(target_dir, target): - nr_regions_path = os.path.join(target_dir, 'regions', 'nr_regions') - nr_regions, err = _damo_fs.read_file(nr_regions_path) - if err != None: - raise Exception('nr_regions read fail (%s)' % err) - if int(nr_regions) != len(target.regions): - _damo_fs.write_file(nr_regions_path, '%d' % len(target.regions)) - def scheme_dir_of(kdamond_idx, context_idx, scheme_idx): return os.path.join( schemes_dir_of(kdamond_idx, context_idx), '%s' % scheme_idx) |