Remove unused code 91/182991/1 tizen_5.0 submit/tizen/20180629.195816 submit/tizen/20180831.124001 submit/tizen/20180831.162406 submit/tizen/20180921.170428 submit/tizen_5.0/20181101.000009
authorVikas Kumar Agrawal <vikas.ag@samsung.com>
Fri, 29 Jun 2018 19:16:04 +0000 (00:46 +0530)
committerVikas Kumar Agrawal <vikas.ag@samsung.com>
Fri, 29 Jun 2018 19:16:04 +0000 (00:46 +0530)
Change-Id: I87a940a1f00acdbcd3710aeaf5fd2b899508af40
Signed-off-by: Vikas Kumar Agrawal <vikas.ag@samsung.com>
playview/src/common/include/vp-play-util.h
playview/src/common/vp-play-util.c

index fa657df..b888408 100644 (file)
@@ -56,11 +56,8 @@ int vp_play_util_get_root_window_angle(Evas_Object * pWin);
 
 bool vp_play_util_app_resume(void);
 bool vp_play_util_check_white_space(char *szText);
-bool vp_play_util_check_valid_file_name(const char *szFileName);
 unsigned long long vp_play_util_get_disk_available_space(const char
                                                                                                                 *szFilePath);
-unsigned long long vp_play_util_get_file_size(const char *szFilePath);
-
 bool vp_play_util_get_city(const char *szLocation, char **szCity);
 bool vp_play_util_is_Xwindow_focused(Ecore_X_Window nXwinID);
 
index aeaf775..94b9416 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include <regex.h>
 #include <efl_extension.h>
 #include <errno.h>
 #include <notification.h>
@@ -1068,51 +1067,6 @@ bool vp_play_util_check_white_space(char *szText)
 
 /**
  *
- * @param szFileName
- * @return
- */
-bool vp_play_util_check_valid_file_name(const char *szFileName)
-{
-       if (szFileName == NULL) {
-               VideoLogError("szFileName is NULL");
-               return FALSE;
-       }
-
-       char *pattern = NULL;
-       int z, cflags = 0;
-       bool bReturn = FALSE;
-       char ebuf[128];
-       regex_t reg;
-       regmatch_t pm[1];
-       const size_t nmatch = 1;
-
-       /*ToDo: ignore the file star with . */
-       if (strncmp(szFileName, ".", 1) == 0) {
-               return FALSE;
-       }
-
-       pattern = VP_PLAY_NAME_PATTERN;
-       z = regcomp(&reg, pattern, cflags);
-
-       if (z != 0) {
-               regerror(z, &reg, ebuf, sizeof(ebuf));
-               VideoLogError("%s: pattern '%s'", ebuf, pattern);
-               return FALSE;
-       }
-
-       z = regexec(&reg, szFileName, nmatch, pm, 0);
-       if (z == REG_NOMATCH) {
-               bReturn = TRUE;
-       } else {
-               bReturn = FALSE;
-       }
-       regfree(&reg);
-
-       return bReturn;
-}
-
-/**
- *
  * @param szFilePath
  */
 unsigned long long vp_play_util_get_disk_available_space(const char
@@ -1147,24 +1101,6 @@ unsigned long long vp_play_util_get_disk_available_space(const char
 
 /**
  *
- * @param szFilePath
- */
-unsigned long long vp_play_util_get_file_size(const char *szFilePath)
-{
-       if (szFilePath == NULL) {
-               VideoLogError("szFilePath is NULL");
-               return 0;
-       }
-
-       unsigned long long lSize = 0;
-
-       lSize = (unsigned long long) vp_file_size(szFilePath);
-
-       return lSize;
-}
-
-/**
- *
  * @param szLocation
  * @param szCity
  * @return