From e6aa6daccf14827d92fd50a300738dda68527eb5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 5 Dec 2014 12:51:23 +0100 Subject: [API CHANGE] Remove .link feature from bootstrap variables This feature had never been documented in include/rtl/bootstrap.h and had only been used internally in LO on Windows for the multi-layer installations (thus is unused since 827430c8c0417396b3c1d2a049ccddb818c89646 "Fold URE: Windows"), so it should not hurt to remove it even if it could be considered part of the stable URE interface. Change-Id: If0f59f30dad8b2c3ff5f7931c19cd254073ccf80 --- sal/rtl/bootstrap.cxx | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'sal/rtl/bootstrap.cxx') diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx index 39b7665a0be4..01f533132251 100644 --- a/sal/rtl/bootstrap.cxx +++ b/sal/rtl/bootstrap.cxx @@ -930,31 +930,6 @@ rtl::OUString expandMacros( } if (n == 1) { buf.append(lookup(file, mode, false, seg[0], requestStack)); - } else if (n == 2 && seg[0] == ".link") { - osl::File f(seg[1]); - rtl::ByteSequence seq; - rtl::OUString line; - rtl::OUString url; - // Silently ignore any errors (is that good?): - if ((f.open(osl_File_OpenFlag_Read) == - osl::FileBase::E_None) && - f.readLine(seq) == osl::FileBase::E_None && - rtl_convertStringToUString( - &line.pData, - reinterpret_cast< char const * >( - seq.getConstArray()), - seq.getLength(), RTL_TEXTENCODING_UTF8, - (RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_ERROR | - RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_ERROR | - RTL_TEXTTOUNICODE_FLAGS_INVALID_ERROR)) && - (osl::File::getFileURLFromSystemPath(line, url) == - osl::FileBase::E_None)) - { - try { - buf.append( - rtl::Uri::convertRelToAbs(seg[1], url)); - } catch (const rtl::MalformedUriException &) {} - } } else if (n == 3 && seg[0] == ".override") { rtl::Bootstrap b(seg[1]); Bootstrap_Impl * f = static_cast< Bootstrap_Impl * >( -- cgit