Remove unused function and file 77/153277/1
authorVolodymyr Brynza <v.brynza@samsung.com>
Thu, 28 Sep 2017 07:19:41 +0000 (10:19 +0300)
committerVolodymyr Brynza <v.brynza@samsung.com>
Thu, 28 Sep 2017 07:19:41 +0000 (10:19 +0300)
Change-Id: I6537488b937bc2c242fd03c483830646a9b11a7b
Signed-off-by: Volodymyr Brynza <v.brynza@samsung.com>
CMakeLists.txt
include/media_streamer_net_util.h [deleted file]
packaging/capi-media-streamer.spec
src/media_streamer_http_server.c
src/media_streamer_net_util.c [deleted file]
src/media_streamer_node.c

index 2a05d39453c93fe4cd9b8dbe48c3d7ed3bbba832..649690ef17d3a6b0b42ed80a632321174b1b46d5 100644 (file)
@@ -10,8 +10,8 @@ SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 SET(INC_DIR include)
 INCLUDE_DIRECTORIES(${INC_DIR})
 
-SET(dependents "dlog glib-2.0 mm-common capi-media-tool iniparser bundle libtbm gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-app-1.0 gstreamer-video-1.0 cynara-client capi-system-info ecore elementary murphy-resource murphy-glib dpm capi-network-connection capi-content-mime-type libsoup-2.4")
-SET(pc_dependents "capi-base-common capi-media-tool gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-app-1.0 gstreamer-video-1.0 cynara-client capi-system-info ecore evas elementary murphy-resource murphy-glib dpm capi-system-info  capi-network-connection capi-content-mime-type libsoup-2.4")
+SET(dependents "dlog glib-2.0 mm-common capi-media-tool iniparser bundle libtbm gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-app-1.0 gstreamer-video-1.0 cynara-client capi-system-info ecore elementary murphy-resource murphy-glib dpm capi-content-mime-type libsoup-2.4")
+SET(pc_dependents "capi-base-common capi-media-tool gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-app-1.0 gstreamer-video-1.0 cynara-client capi-system-info ecore evas elementary murphy-resource murphy-glib dpm capi-system-info capi-content-mime-type libsoup-2.4")
 
 INCLUDE(FindPkgConfig)
 pkg_check_modules(${fw_name} REQUIRED ${dependents})
diff --git a/include/media_streamer_net_util.h b/include/media_streamer_net_util.h
deleted file mode 100644 (file)
index 76f72e9..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * 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.
- */
-
-#ifndef __MEDIA_STREAMER_NET_UTIL_H__
-#define __MEDIA_STREAMER_NET_UTIL_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-int __ms_get_local_network_address(char **ip_address);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __MEDIA_STREAMER_NET_UTIL_H__ */
index 5a5793b35d4bf1418e8695ccd541a4e7507170c9..bae1aab331fe4fe51ec1abc1ba9481e9cb1106cf 100644 (file)
@@ -32,7 +32,6 @@ BuildRequires:  pkgconfig(appcore-efl)
 BuildRequires:  pkgconfig(murphy-resource)
 BuildRequires:  pkgconfig(murphy-glib)
 BuildRequires:  pkgconfig(dpm)
-BuildRequires:  pkgconfig(capi-network-connection)
 BuildRequires:  pkgconfig(libsoup-2.4)
 BuildRequires:  pkgconfig(capi-content-mime-type)
 
index 5d35bc2666ccd029898b5d26f4ac2f9cb0f90feb..fa60577c1369ceb227b7755185dfb99bcd3e0a54 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <media_streamer.h>
 #include <media_streamer_util.h>
-#include <media_streamer_net_util.h>
 
 #include <media_streamer_http_server.h>
 
diff --git a/src/media_streamer_net_util.c b/src/media_streamer_net_util.c
deleted file mode 100644 (file)
index 71a92e0..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * 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 <media_streamer.h>
-#include <media_streamer_util.h>
-#include <media_streamer_net_util.h>
-
-#include <net_connection.h>
-
-int __ms_get_local_network_address(char **ip_address)
-{
-       connection_h conn = NULL;
-       connection_type_e conn_type = CONNECTION_TYPE_DISCONNECTED;
-
-       if (CONNECTION_ERROR_NONE != connection_create(&conn)) {
-               ms_error("Failed to create connection");
-               return MEDIA_STREAMER_ERROR_INVALID_OPERATION;
-       }
-
-       if (CONNECTION_ERROR_NONE != connection_get_type(conn, &conn_type)) {
-               ms_error("Failed to acquire connection type");
-               return MEDIA_STREAMER_ERROR_INVALID_OPERATION;
-       }
-
-       if (conn_type != CONNECTION_TYPE_WIFI) {
-               ms_error("Wrong connection type");
-               return MEDIA_STREAMER_ERROR_INVALID_OPERATION;
-       }
-
-       if (CONNECTION_ERROR_NONE != connection_get_ip_address(conn, CONNECTION_ADDRESS_FAMILY_IPV4, ip_address)) {
-               ms_error("Failed to acquire connection ip address");
-               return MEDIA_STREAMER_ERROR_INVALID_OPERATION;
-       }
-
-       return MEDIA_STREAMER_ERROR_NONE;
-}
index bbeba0c4eb702627ed175496681107f7e5056746..1c5a0fb0d3f53b854923da8d7a127f172980ff58 100644 (file)
@@ -17,7 +17,6 @@
 #include <media_streamer_node.h>
 #include <media_streamer_node_resources.h>
 #include <media_streamer_node_policy.h>
-#include <media_streamer_net_util.h>
 #include <media_streamer_util.h>
 #include <media_streamer_gst.h>
 #include <cynara-client.h>