Re: [Libguestfs] [PATCH 2/2] dib: use remove_duplicates instead of own code

2016-09-23 Thread Richard W.M. Jones
On Fri, Sep 23, 2016 at 06:05:25PM +0200, Pino Toscano wrote: > Use a common function to remove duplicates in an unsorted list. > > Just refactoring, with no behaviour change. Except it's no longer O(n^2) :-) ACK series. Rich. > --- > dib/cmdline.ml | 2 +- > dib/utils.ml | 4 > 2

[Libguestfs] [PATCH 2/2] dib: use remove_duplicates instead of own code

2016-09-23 Thread Pino Toscano
Use a common function to remove duplicates in an unsorted list. Just refactoring, with no behaviour change. --- dib/cmdline.ml | 2 +- dib/utils.ml | 4 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/dib/cmdline.ml b/dib/cmdline.ml index 1fd6c71..144e5a7 100644 ---