refactoring: remove duplicate db access method 58/199158/8
authorAdrian Szyndela <adrian.s@samsung.com>
Fri, 1 Feb 2019 08:27:34 +0000 (09:27 +0100)
committerAdrian Szyndela <adrian.s@samsung.com>
Tue, 12 Feb 2019 14:49:23 +0000 (15:49 +0100)
commit118785437b30f4f05a8bfa0a6f5479087ca65bf3
tree2dcdf975f17a58ef842ce4f2cd952da8094bad4a
parent3e018e22f5c130483981efa2ccfebe9fefb1742c
refactoring: remove duplicate db access method

This removes duplicated db access method from naive_policy_checker.
Additionally, friend declaration is removed for DbAdapter,
the access method made public, and code that uses removed method is reworked.

Change-Id: Ifac510e13ba0001390c25d5584c7500c89d665be
src/internal/internal.cpp
src/internal/naive_policy_checker.cpp
src/internal/naive_policy_checker.hpp
src/internal/policy.cpp
src/internal/policy.hpp
src/internal/xml_parser.hpp