libutil: remove some unused code
the vaccum bits have been commented since 2014(!) Change-Id: I55c6318413be3c3f5d0099b58d58932374a3a008
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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>([&]() {
|
||||
|
||||
@@ -276,8 +276,6 @@ public:
|
||||
|
||||
std::optional<TrustedFlag> isTrustedClient() override;
|
||||
|
||||
void vacuumDB();
|
||||
|
||||
void addSignatures(const StorePath & storePath, const StringSet & sigs) override;
|
||||
|
||||
/**
|
||||
|
||||
@@ -41,8 +41,6 @@ struct NarAccessor : public FSAccessor
|
||||
|
||||
std::stack<NarMember *> parents;
|
||||
|
||||
bool isExec = false;
|
||||
|
||||
uint64_t pos = 0;
|
||||
|
||||
public:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user