Remove unused code of _PERFORMANCE_CHECK_ and remove empty media-svc-debug.c file 40/147840/2
authorHaejeong Kim <backto.kim@samsung.com>
Wed, 6 Sep 2017 01:51:04 +0000 (10:51 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Wed, 6 Sep 2017 01:51:28 +0000 (10:51 +0900)
Change-Id: Ie2746976b141edde37c5419c2df2d3e4f8dc89f9

CMakeLists.txt
src/common/media-svc-debug.c [deleted file]
src/include/common/media-svc-debug.h

index 3a2b409..b73b9d0 100755 (executable)
@@ -13,7 +13,6 @@ SET(SRCS
        src/common/media-svc-media-folder.c
        src/common/media-svc-db-utils.c
        src/common/media-svc-util.c
-       src/common/media-svc-debug.c
        src/common/media-svc-noti.c
        src/common/media-svc-storage.c
        src/common/media-svc-localize_ch.c
@@ -73,7 +72,6 @@ ADD_DEFINITIONS("-DPACKAGE=\"${PACKAGE}\"")
 ADD_DEFINITIONS("-DPACKAGE_NAME=\"${PKGNAME}\"")
 ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
 ADD_DEFINITIONS("-D_FILE_OFFSET_BITS=64")
-#ADD_DEFINITIONS("-D_PERFORMANCE_CHECK_")
 
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--hash-style=both")
 CONFIGURE_FILE(libmedia-service.pc.in libmedia-service.pc @ONLY)
diff --git a/src/common/media-svc-debug.c b/src/common/media-svc-debug.c
deleted file mode 100755 (executable)
index da12c32..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * libmedia-service
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#include <unistd.h>
-#include <asm/unistd.h>
-#include <time.h>
-#include <sys/time.h>
-#include "media-svc-debug.h"
-
-#ifdef _PERFORMANCE_CHECK_
-static long g_time_usec = 0L;
-#endif
-
-long mediainfo_get_debug_time(void)
-{
-#ifdef _PERFORMANCE_CHECK_
-       struct timeval time;
-       gettimeofday(&time, NULL);
-       return time.tv_sec * 1000000 + time.tv_usec;
-#else
-       return 0L;
-#endif
-}
-
-void mediainfo_reset_debug_time(void)
-{
-#ifdef _PERFORMANCE_CHECK_
-       struct timeval time;
-       gettimeofday(&time, NULL);
-       g_time_usec = time.tv_sec * 1000000 + time.tv_usec;
-#endif
-}
-
-void mediainfo_print_debug_time(char *time_string)
-{
-#ifdef _PERFORMANCE_CHECK_
-       struct timeval time;
-       double totaltime = 0.0;
-
-       gettimeofday(&time, NULL);
-       totaltime = (double)(time.tv_sec * 1000000 + time.tv_usec - g_time_usec) / CLOCKS_PER_SEC;
-
-       media_svc_debug("time [%s] : %f", time_string, totaltime);
-#endif
-}
-
-void
-mediainfo_print_debug_time_ex(long start, long end, const char *func_name, char *time_string)
-{
-#ifdef _PERFORMANCE_CHECK_
-       double totaltime = 0.0;
-
-       totaltime = (double)(end - start) / CLOCKS_PER_SEC;
-
-       media_svc_debug("time [%s: %s] : %f", func_name, time_string, totaltime);
-#endif
-}
index 45fc613..bfdfbda 100755 (executable)
                        LOGE(FONT_COLOR_RED""fmt" : standard error= [%s]", media_svc_stderror_buf); \
                } while (0)
 
-
-#ifdef _PERFORMANCE_CHECK_
-long
-mediainfo_get_debug_time(void);
-void
-mediainfo_reset_debug_time(void);
-void
-mediainfo_print_debug_time(char *time_string);
-void
-mediainfo_print_debug_time_ex(long start, long end, const char *func_name, char *time_string);
-#endif
-
 #endif /*_MEDIA_SVC_DEBUG_H_*/