delete SWIG typemaps for FILE*

Summary:
The SWIG typemaps for FILE* are no longer used, so
this patch deletes them.

Reviewers: JDevlieghere, jasonmolenda, labath

Reviewed By: labath

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D68963

llvm-svn: 375073
This commit is contained in:
Lawrence D'Anna
2019-10-17 01:35:22 +00:00
parent 56ee31964f
commit 0f783599a4
7 changed files with 10 additions and 134 deletions

View File

@@ -837,25 +837,6 @@ bool PythonFile::Check(PyObject *py_obj) {
#endif
}
FileUP PythonFile::GetUnderlyingFile() const {
if (!IsValid())
return nullptr;
// We don't own the file descriptor returned by this function, make sure the
// File object knows about that.
PythonString py_mode = GetAttributeValue("mode").AsType<PythonString>();
auto options = File::GetOptionsFromMode(py_mode.GetString());
if (!options) {
llvm::consumeError(options.takeError());
return nullptr;
}
auto file = std::unique_ptr<File>(new NativeFile(
PyObject_AsFileDescriptor(m_py_obj), options.get(), false));
if (!file->IsValid())
return nullptr;
return file;
}
namespace {
class GIL {
public: