From b1d725032e1b7a4ffe4e1caaecfb8a7594e9da9a Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sun, 10 Mar 2024 15:27:19 -0500 Subject: [PATCH] branch_tier.cpp --- config.toml | 3 ++- src/branch_tier.cpp | 13 ------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/config.toml b/config.toml index f328baac..d40b99a0 100644 --- a/config.toml +++ b/config.toml @@ -107,9 +107,10 @@ mode = 'RW' [[branches.tier.branch]] enabled = true name = 'branch1' -type = 'scan' +type = 'literal' path = '/mnt/branch1' mode = 'RW' +exclude = ['*.png'] [[branches.tier.branch]] enabled = true path = '/mnt/*' diff --git a/src/branch_tier.cpp b/src/branch_tier.cpp index fd5179d2..614584c4 100644 --- a/src/branch_tier.cpp +++ b/src/branch_tier.cpp @@ -75,16 +75,3 @@ BranchTier::BranchTier(toml::value const &v_) l::load_branch_scan(table,_branches); } } - -void -BranchTier::copy_enabled_rw(BranchTier &bt_) const -{ - for(auto const &b : _branches) - { - if(b.enabled == false) - continue; - if(b.mode != +Branch2::Mode::RW) - continue; - bt_._branches.emplace_back(b); - } -}