aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/gc-store.cc
blob: dc2b82166e39c072f5c3aab48f75f72cdab37d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "gc-store.hh"

namespace nix {

GcStore & GcStore::require(Store & store)
{
    auto * gcStore = dynamic_cast<GcStore *>(&store);
    if (!gcStore)
        throw UsageError("Garbage collection not supported by store '%s'", store.getUri());
    return *gcStore;
}

}