From 4fb61bc5afabe671b6a7b5d615f2572390fa5bd0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 9 Sep 2025 13:36:01 +0200 Subject: [PATCH] Remove WorkerProto::Op::ExportPath This was obsoleted in May 2016 (538a64e8c314f23ba0c5d76201f1c20e71884a21). --- src/libstore/daemon.cc | 11 ----------- src/libstore/include/nix/store/worker-protocol.hh | 1 - 2 files changed, 12 deletions(-) diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc index 87bfe5187..ebe0c2ab4 100644 --- a/src/libstore/daemon.cc +++ b/src/libstore/daemon.cc @@ -546,17 +546,6 @@ static void performOp( break; } - case WorkerProto::Op::ExportPath: { - auto path = store->parseStorePath(readString(conn.from)); - readInt(conn.from); // obsolete - logger->startWork(); - TunnelSink sink(conn.to); - store->exportPath(path, sink); - logger->stopWork(); - conn.to << 1; - break; - } - case WorkerProto::Op::ImportPaths: { logger->startWork(); TunnelSource source(conn.from, conn.to); diff --git a/src/libstore/include/nix/store/worker-protocol.hh b/src/libstore/include/nix/store/worker-protocol.hh index c7f8d5891..3920089fa 100644 --- a/src/libstore/include/nix/store/worker-protocol.hh +++ b/src/libstore/include/nix/store/worker-protocol.hh @@ -152,7 +152,6 @@ enum struct WorkerProto::Op : uint64_t { AddIndirectRoot = 12, SyncWithGC = 13, FindRoots = 14, - ExportPath = 16, // obsolete QueryDeriver = 18, // obsolete SetOptions = 19, CollectGarbage = 20,