From 50248ab86b63e76a1a341f170676c59c4e5fb166 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Mon, 31 Mar 2014 15:58:40 -0500 Subject: Simplify twrpTar skip dir checks, DU code cleanup * Remove unused parent variable from twruDU constructor * Replace manual checks for /data/media with DU's check_skip_dirs() function * Remove check_skip_dirs(A,B) function which duplicates the functionality of check_skip_dirs(A) * Remove redundant trailing slash removal from check_absolute_skip_dirs(); this function is only accessed through check_skip_dirs() Change-Id: Icfe8d71de36e33db6749fc5896dd3eafbcf7c9a4 --- twrpDU.hpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'twrpDU.hpp') diff --git a/twrpDU.hpp b/twrpDU.hpp index 91f5039a7..e947de9c2 100644 --- a/twrpDU.hpp +++ b/twrpDU.hpp @@ -42,14 +42,12 @@ public: void add_relative_dir(const string& Path); bool check_relative_skip_dirs(const string& dir); bool check_absolute_skip_dirs(const string& path); - bool check_skip_dirs(const string& parent, const string& dir); bool check_skip_dirs(const string& path); vector get_absolute_dirs(void); void clear_relative_dir(string dir); private: vector absolutedir; vector relativedir; - string parent; }; extern twrpDU du; -- cgit v1.2.3