libcmd: remove unused savedArgv

this was only used in the pre-exec daemon days.

Change-Id: I3bbb113f9940e6980f01af60e6614a9656b0fd03
This commit is contained in:
eldritch horrors
2025-12-07 18:49:34 +00:00
parent 1e8f7c7c76
commit aba740a276
3 changed files with 0 additions and 7 deletions
-2
View File
@@ -15,8 +15,6 @@ namespace nix {
extern std::string programPath;
extern char * * savedArgv;
class EvalState;
struct Pos;
class Store;
-2
View File
@@ -33,8 +33,6 @@
namespace nix {
char * * savedArgv;
static bool gcWarning = true;
void printGCWarning()
-3
View File
@@ -455,8 +455,6 @@ void registerNixHelp()
int mainWrapped(AsyncIoRoot & aio, int argc, char ** argv)
{
savedArgv = argv;
/* The chroot helper needs to be run before any threads have been
started. */
if (argc > 0 && argv[0] == chrootHelperName) {
@@ -645,7 +643,6 @@ int mainWrapped(AsyncIoRoot & aio, int argc, char ** argv)
return 0;
}
}
int main(int argc, char * * argv)