diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-11 21:53:22 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-11 21:53:22 +0000 |
commit | 70fbe6f80e5836377f8b50098aa869e962ccf41a (patch) | |
tree | 4084bc3af20a1f336c260dfb949f4553c14a8665 /llvm/unittests/Support/Path.cpp | |
parent | e05d38048682ad46e7b89b115872fc84043c20d4 (diff) | |
download | llvm-70fbe6f80e5836377f8b50098aa869e962ccf41a.zip llvm-70fbe6f80e5836377f8b50098aa869e962ccf41a.tar.gz llvm-70fbe6f80e5836377f8b50098aa869e962ccf41a.tar.bz2 |
Remove unused has_magic.
This will allow inlining get_magic, which should in turn fix one of the mingw
build problems after the switch to std::error_code.
llvm-svn: 210712
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r-- | llvm/unittests/Support/Path.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index d116aca..f5fb815 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp @@ -539,9 +539,6 @@ TEST_F(FileSystemTest, Magic) { StringRef magic(i->magic_str, i->magic_str_len); file << magic; file.close(); - bool res = false; - ASSERT_NO_ERROR(fs::has_magic(file_pathname.c_str(), magic, res)); - EXPECT_TRUE(res); EXPECT_EQ(i->magic, fs::identify_magic(magic)); ASSERT_NO_ERROR(fs::remove(Twine(file_pathname))); } |