Remove unnecessary call to topoSortPaths()

exportPaths() already does this.
This commit is contained in:
Eelco Dolstra 2017-02-07 19:20:41 +01:00
parent 7a58ad0ef5
commit ce4d8e3ef8
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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;
}