From: Janusz Majnert Date: Thu, 25 Oct 2012 15:51:36 +0000 (+0200) Subject: Removing unused WtrUtilStringToLower X-Git-Tag: 2.1b_release~6^2~168 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0018c20789c0aa02fbcb90038b8c6a3bf9f52ba;p=framework%2Fweb%2Fwrt-commons.git Removing unused WtrUtilStringToLower [Issue#] N/A [Feature] WrtUtilStringToLower is not used anywhere [Cause] WrtUtilStringToLower is not used anywhere [Solution] Remove the function [Verification] Build all repositories Change-Id: Ie1a20d347102ba2600e19e487815961c08007917 --- diff --git a/modules/utils/include/dpl/utils/wrt_utility.h b/modules/utils/include/dpl/utils/wrt_utility.h index 91f08fd..fb2c920 100644 --- a/modules/utils/include/dpl/utils/wrt_utility.h +++ b/modules/utils/include/dpl/utils/wrt_utility.h @@ -61,17 +61,6 @@ bool WrtUtilMakeDir(const std::string &newpath, mode_t mode=0755); bool WrtUtilRemove(const std::string &path); /** - * This function converts a string to lowercase - * - * @param[in] in the string to be converted - * @param[out] out the string for placing converted values in - * - * The previous data stored in string out will be replaced with converted - * string from string in - */ -void WrtUtilStringToLower(std::string &out, const std::string &in); - -/** * Checks if path exists and is a regular file * * @param[in] path the string representing path to check diff --git a/modules/utils/src/wrt_utility.cpp b/modules/utils/src/wrt_utility.cpp index fbe2f8a..190740e 100644 --- a/modules/utils/src/wrt_utility.cpp +++ b/modules/utils/src/wrt_utility.cpp @@ -145,14 +145,6 @@ bool WrtUtilRemove(const std::string &path) return rv; } -void WrtUtilStringToLower(std::string &out, const std::string &in) -{ - out.clear(); - for (std::string::const_iterator it=in.begin(); it(tolower(*it)); - } -} - bool WrtUtilFileExists(const std::string &path) { struct stat tmp;