libutil: remove some unused code

the vaccum bits have been commented since 2014(!)

Change-Id: I55c6318413be3c3f5d0099b58d58932374a3a008
This commit is contained in:
eldritch horrors
2025-01-19 16:40:26 +01:00
parent 6870fa89e8
commit b8ab642fdf
5 changed files with 0 additions and 25 deletions
-3
View File
@@ -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();
}
-7
View File
@@ -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<void>([&]() {
-2
View File
@@ -276,8 +276,6 @@ public:
std::optional<TrustedFlag> isTrustedClient() override;
void vacuumDB();
void addSignatures(const StorePath & storePath, const StringSet & sigs) override;
/**
-2
View File
@@ -41,8 +41,6 @@ struct NarAccessor : public FSAccessor
std::stack<NarMember *> parents;
bool isExec = false;
uint64_t pos = 0;
public:
-11
View File
@@ -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