From e4090ffefb776b9280029b0405ec7d3f5471512a Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 6 May 2021 22:30:55 +0000 Subject: install mode: slbt_exec_install_entry(): remove dead code. --- src/logic/slbt_exec_install.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c index 82c7983..1faa305 100644 --- a/src/logic/slbt_exec_install.c +++ b/src/logic/slbt_exec_install.c @@ -476,6 +476,8 @@ static int slbt_exec_install_entry( if (slbt_set_alternate_host(dctx,host,host)) return SLBT_NESTED_ERROR(dctx); + fpe = !strcmp(dctx->cctx->asettings.imagefmt,"pe"); + /* libfoo.a --> libfoo.so */ strcpy(dot,dsosuffix); @@ -493,13 +495,6 @@ static int slbt_exec_install_entry( dest ? (char *)dest->arg : *dst)) return SLBT_NESTED_ERROR(dctx); - /* PE support: does .libs/libfoo.so.def exist? */ - if ((size_t)snprintf(dstfile,sizeof(dstfile),"%s.def", - slnkname) >= sizeof(dstfile)) - return SLBT_BUFFER_ERROR(dctx); - - fpe = !strcmp(dctx->cctx->asettings.imagefmt,"pe"); - /* basename */ if ((base = strrchr(slnkname,'/'))) base++; -- cgit v1.2.3