diff --git a/lix/libstore/gc.cc b/lix/libstore/gc.cc index 750bdbc1d..11e06d8b2 100644 --- a/lix/libstore/gc.cc +++ b/lix/libstore/gc.cc @@ -856,9 +856,6 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results) printInfo("note: currently hard linking saves %.2f MiB", ((unsharedSize - actualSize - overhead) / (1024.0 * 1024.0))); } - - /* While we're at it, vacuum the database. */ - //if (options.action == GCOptions::gcDeleteDead) vacuumDB(); } diff --git a/lix/libstore/local-store.cc b/lix/libstore/local-store.cc index e3fc07538..7b995def5 100644 --- a/lix/libstore/local-store.cc +++ b/lix/libstore/local-store.cc @@ -1753,13 +1753,6 @@ void LocalStore::upgradeStore7() #endif -void LocalStore::vacuumDB() -{ - auto state(_state.lock()); - state->db.exec("vacuum"); -} - - void LocalStore::addSignatures(const StorePath & storePath, const StringSet & sigs) { retrySQLite([&]() { diff --git a/lix/libstore/local-store.hh b/lix/libstore/local-store.hh index 7ea86e1e0..0b8df601c 100644 --- a/lix/libstore/local-store.hh +++ b/lix/libstore/local-store.hh @@ -276,8 +276,6 @@ public: std::optional isTrustedClient() override; - void vacuumDB(); - void addSignatures(const StorePath & storePath, const StringSet & sigs) override; /** diff --git a/lix/libstore/nar-accessor.cc b/lix/libstore/nar-accessor.cc index 9239ef697..5f7c51e3b 100644 --- a/lix/libstore/nar-accessor.cc +++ b/lix/libstore/nar-accessor.cc @@ -41,8 +41,6 @@ struct NarAccessor : public FSAccessor std::stack parents; - bool isExec = false; - uint64_t pos = 0; public: diff --git a/lix/libutil/archive.cc b/lix/libutil/archive.cc index 7ace1f044..292215dbb 100644 --- a/lix/libutil/archive.cc +++ b/lix/libutil/archive.cc @@ -157,17 +157,6 @@ static SerialisationError badArchive(const std::string & s) } -#if 0 -static void skipGeneric(Source & source) -{ - if (readString(source) == "(") { - while (readString(source) != ")") - skipGeneric(source); - } -} -#endif - - struct CaseInsensitiveCompare { bool operator() (const std::string & a, const std::string & b) const