// LensesToHideStorageUtils
//  getLensIds()
//  shouldWeHideLens(lensId)
//  addToLensIds(lensId)
//  clear()
//  count()

function LensesToHideStorageUtils() {
    this.storageUtils = newStorageUtils("LensesToHideStorageUtils");

    this.getLensIds = this.storageUtils.getIds;
    this.shouldWeHideLens = this.storageUtils.isFlagSet;

    this.addToLensIds = function (lensId) {
        displayCurrentLensesCache.clear();

        this.storageUtils.addToIds(lensId);
    };

    this.removeFromLensIds = function (lensId) {
        displayCurrentLensesCache.clear();

        this.storageUtils.removeFromIds(lensId);
    };

    this.clear = function () {
        const logHeader = 'lensesToHideStorageUtils.clear: ';
        log(logHeader + 'enter');

        log(logHeader + 'atc displayCurrentLensesCache.clear');
        displayCurrentLensesCache.clear();
        log(logHeader + 'bf displayCurrentLensesCache.clear');

        log(logHeader + 'atc this.storageUtils.clear');
        this.storageUtils.clear();
        log(logHeader + 'bf this.storageUtils.clear');

        log(logHeader + 'leave');
    };

    this.count = this.storageUtils.count;
}