From cea9aadb4ef56c738ea98767a26dbc03679fb7cd Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Mon, 4 Aug 2014 18:18:05 +0200
Subject: [PATCH] Make File.h a header-only class

---
 bob/io/base/cpp/File.cpp               | 10 ----------
 bob/io/base/include/bob.io.base/File.h |  2 +-
 setup.py                               |  1 -
 3 files changed, 1 insertion(+), 12 deletions(-)
 delete mode 100644 bob/io/base/cpp/File.cpp

diff --git a/bob/io/base/cpp/File.cpp b/bob/io/base/cpp/File.cpp
deleted file mode 100644
index bbdfedf..0000000
--- a/bob/io/base/cpp/File.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * @date Tue Oct 25 23:25:46 2011 +0200
- * @author Andre Anjos <andre.anjos@idiap.ch>
- *
- * Copyright (C) Idiap Research Institute, Martigny, Switzerland
- */
-
-#include <bob.io.base/File.h>
-
-bob::io::base::File::~File() { }
diff --git a/bob/io/base/include/bob.io.base/File.h b/bob/io/base/include/bob.io.base/File.h
index e41bccd..bd58ff5 100644
--- a/bob/io/base/include/bob.io.base/File.h
+++ b/bob/io/base/include/bob.io.base/File.h
@@ -25,7 +25,7 @@ namespace bob { namespace io { namespace base {
 
     public: //abstract API
 
-      virtual ~File();
+      virtual ~File() {};
 
       /**
        * The filename this array codec current points to
diff --git a/setup.py b/setup.py
index 58a37d7..df02be0 100644
--- a/setup.py
+++ b/setup.py
@@ -170,7 +170,6 @@ setup(
         [
           "bob/io/base/cpp/CodecRegistry.cpp",
           "bob/io/base/cpp/CSVFile.cpp",
-          "bob/io/base/cpp/File.cpp",
           "bob/io/base/cpp/HDF5ArrayFile.cpp",
           "bob/io/base/cpp/HDF5Attribute.cpp",
           "bob/io/base/cpp/HDF5Dataset.cpp",
-- 
GitLab