about summary refs log tree commit diff
path: root/src/nix-store
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-02-07T18·20+0100
committerEelco Dolstra <edolstra@gmail.com>2017-02-07T18·20+0100
commitce4d8e3ef83505560db787876beb30d20ca6faf2 (patch)
treeeaa58d484c4f752662fb9e3190922764414644ab /src/nix-store
parent7a58ad0ef5d32f130163276d49f962b4be92e6fd (diff)
Remove unnecessary call to topoSortPaths()
exportPaths() already does this.
Diffstat (limited to 'src/nix-store')
-rw-r--r--src/nix-store/nix-store.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index c1e6afef0e50..0aabe66c5626 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -922,9 +922,7 @@ static void opServe(Strings opFlags, Strings opArgs)
 
             case cmdExportPaths: {
                 readInt(in); // obsolete
-                Paths sorted = store->topoSortPaths(readStorePaths<PathSet>(*store, in));
-                reverse(sorted.begin(), sorted.end());
-                store->exportPaths(sorted, out);
+                store->exportPaths(readStorePaths<Paths>(*store, in), out);
                 break;
             }