提交 c66eb3a7 编写于 作者: H HexToString

delete unused change

上级 84c3dc93
......@@ -18,9 +18,6 @@ set(PADDLE_SERVING_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(PADDLE_SERVING_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
SET(PADDLE_SERVING_INSTALL_DIR ${CMAKE_BINARY_DIR}/output)
SET(CMAKE_INSTALL_RPATH "\$ORIGIN" "${CMAKE_INSTALL_RPATH}")
SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
include(system)
project(paddle-serving CXX C)
......
......@@ -39,10 +39,6 @@ class DataBuf {
size_t size() const { return _size; }
void set_owned(bool owned){
_owned = owned;
}
void free() {
_size = 0;
if (_owned) {
......
......@@ -118,8 +118,6 @@ int ut_main(int argc, char** argv) {
#else
int main(int argc, char** argv) {
#endif
try
{
google::ParseCommandLineFlags(&argc, &argv, true);
if (FLAGS_V) {
......@@ -241,11 +239,5 @@ try
google::ShutdownGoogleLogging();
#endif
VLOG(2) << "Paddle Inference Server exit successfully!";
}
catch (const std::exception &exc)
{
// catch anything thrown within try block that derives from std::exception
std::cerr << exc.what();
}
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册