Remove fstream_accessors.h from DPL 84/23384/1
authorRafal Krypa <r.krypa@samsung.com>
Tue, 24 Jun 2014 15:49:05 +0000 (17:49 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Tue, 24 Jun 2014 16:23:50 +0000 (18:23 +0200)
- It is not used in security-manager
- In fact it was never a part of DPL, but an addition by security-server

Change-Id: Ia9803ea90cfe8f1a20ab072717c6d9895fb1d89a

src/dpl/core/include/dpl/fstream_accessors.h [deleted file]

diff --git a/src/dpl/core/include/dpl/fstream_accessors.h b/src/dpl/core/include/dpl/fstream_accessors.h
deleted file mode 100644 (file)
index 09f2dc2..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- *  Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
- *
- *  Contact: Rafal Krypa <r.krypa@samsung.com>
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License
- *
- * @file        fstream-helper.h
- * @author      Marek Smolinski (m.smolinski@samsung.com)
- * @version     1.0
- * @brief       This file is the implementation file of fstream-helper
- *
- */
-
-#ifndef SECURITY_MANAGER_FSTREAM_ACCESSORS_H
-#define SECURITY_MANAGER_FSTREAM_ACCESSORS_H
-
-namespace SecurityManager {
-
-/*
- * Bypass lack of public member function to get file
- * descriptor from fstream objects in std
- * This feature is needed for flushing data from kernel space buffer to
- * physical device [fsync(int fd) - syscall] on opened fstream object
-*/
-
-template<typename T>
-class FstreamAccessors : T::__filebuf_type {
-    typedef FstreamAccessors<T> MyType;
-public:
-    static int GetFd(T &strm) {
-        return static_cast<MyType *>(strm.rdbuf())->_M_file.fd();
-    }
-};
-
-} // namespace SecurityManager
-
-#endif // SECURITY_MANAGER_FSTREAM_ACCESSORS_H