mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixed unused filepath bug
Signed-off-by: VoR0220 <rj@erisindustries.com>
This commit is contained in:
parent
8ace851831
commit
e02270bbb4
@ -508,7 +508,6 @@ string CompilerStack::applyRemapping(string const& _path, string const& _context
|
||||
return std::equal(_a.begin(), _a.end(), _b.begin());
|
||||
};
|
||||
|
||||
using filepath = boost::filesystem::path;
|
||||
size_t longestPrefix = 0;
|
||||
size_t longestContext = 0;
|
||||
string longestPrefixTarget;
|
||||
@ -524,7 +523,7 @@ string CompilerStack::applyRemapping(string const& _path, string const& _context
|
||||
if (!isPrefixOf(contextFileString, _context))
|
||||
continue;
|
||||
// Skip if we already have a closer match.
|
||||
if (longestPrefix > 0 && prefixFileString.length() < longestPrefix)
|
||||
if (prefixFileString.length() < longestPrefix)
|
||||
continue;
|
||||
// Skip if the prefix does not match.
|
||||
if (!isPrefixOf(prefixFileString, _path))
|
||||
|
Loading…
Reference in New Issue
Block a user