git: usr.bin/undo: Remove redundant history collection

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Oct 10 05:46:02 PDT 2015


commit 7fb4fc889cba65b7f999aace93b2c1a231b18012
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Sep 27 05:16:15 2015 +0900

    usr.bin/undo: Remove redundant history collection
    
    collect_history(fd, &error, &tse_tree);
    is done right before this unconditionally. If the previous
    collect were empty, this collect after if(cmd == CMD_DUMP)
    will most likely be empty.
    
    (It also doesn't really matter if the result has changed
    before and after if(cmd == CMD_DUMP) conditional since that's
    not what this program cares about anyway)
    
    Also see 3260eed4.

Summary of changes:
 usr.bin/undo/undo.c | 8 --------
 1 file changed, 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7fb4fc889cba65b7f999aace93b2c1a231b18012


-- 
DragonFly BSD source repository



More information about the Commits mailing list